Skip to content

Commit

Permalink
Update dx11HW.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Legion-zialot committed Aug 28, 2024
1 parent a03a7f8 commit 3322583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Layers/xrRenderDX11/dx11HW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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<D3DCompileFunc>(hD3DCompiler->GetProcAddress("D3DCompileFromMemory"));
}
else
Expand Down

0 comments on commit 3322583

Please sign in to comment.