From 33225833df9114b3bc17eb2520b7b295bedceb12 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 28 Aug 2024 03:33:51 +0300 Subject: [PATCH] Update dx11HW.cpp --- src/Layers/xrRenderDX11/dx11HW.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Layers/xrRenderDX11/dx11HW.cpp b/src/Layers/xrRenderDX11/dx11HW.cpp index 00c16c2e639..9d92554ae2a 100644 --- a/src/Layers/xrRenderDX11/dx11HW.cpp +++ b/src/Layers/xrRenderDX11/dx11HW.cpp @@ -52,7 +52,7 @@ void CHW::OnAppDeactivate() void CHW::CreateD3D() { hDXGI = XRay::LoadModule("dxgi"); - hD3D = XRay::LoadModule("d3d11"); + hD3D = XRay::LoadModule("d3d11_43"); if (!hD3D->IsLoaded() || !hDXGI->IsLoaded()) { Valid = false; @@ -82,7 +82,7 @@ void CHW::DestroyD3D() // To make it work with DXVK, etc. hD3D->Close(); hDXGI->Close(); - if (auto hModule = GetModuleHandleA("d3d11.dll")) + if (auto hModule = GetModuleHandleA("d3d11_43.dll")) FreeLibrary(hModule); if (auto hModule = GetModuleHandleA("dxgi.dll")) FreeLibrary(hModule); @@ -174,7 +174,7 @@ void CHW::CreateDevice(SDL_Window* sdlWnd) { if (ClearSkyMode) { - hD3DCompiler = XRay::LoadModule("d3dcompiler_37"); + hD3DCompiler = XRay::LoadModule("d3dcompiler_47"); D3DCompile = static_cast(hD3DCompiler->GetProcAddress("D3DCompileFromMemory")); } else