Skip to content

Commit

Permalink
Use normal LoadLibrary for loading d3d11_proxy
Browse files Browse the repository at this point in the history
For some reason, LOAD_LIBRARY_SEARCH_APPLICATION_DIR won't find a dxvk dll next to the main exe on Windows
  • Loading branch information
TellowKrinkle committed Apr 15, 2023
1 parent b824ed2 commit 6af15e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ D3D11Proc loadSystemD3D11() {
if (d3d11Proc.D3D11CreateDevice)
return d3d11Proc;

HMODULE libD3D11 = LoadLibraryExA("d3d11_proxy.dll", nullptr, LOAD_LIBRARY_SEARCH_APPLICATION_DIR);
HMODULE libD3D11 = LoadLibraryA("d3d11_proxy.dll");

if (libD3D11) {
log("Using d3d11_proxy.dll");
Expand Down

0 comments on commit 6af15e6

Please sign in to comment.