Commit d367c9ae authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler/tests: Load the correct d3dcompiler DLL in the asm tests.

parent 20b52b61
...@@ -1725,7 +1725,11 @@ static BOOL load_d3dcompiler(void) ...@@ -1725,7 +1725,11 @@ static BOOL load_d3dcompiler(void)
{ {
HMODULE module; HMODULE module;
#if D3D_COMPILER_VERSION == 47
if (!(module = LoadLibraryA("d3dcompiler_47.dll"))) return FALSE;
#else
if (!(module = LoadLibraryA("d3dcompiler_43.dll"))) return FALSE; if (!(module = LoadLibraryA("d3dcompiler_43.dll"))) return FALSE;
#endif
pD3DAssemble = (void*)GetProcAddress(module, "D3DAssemble"); pD3DAssemble = (void*)GetProcAddress(module, "D3DAssemble");
ppD3DPreprocess = (void*)GetProcAddress(module, "D3DPreprocess"); ppD3DPreprocess = (void*)GetProcAddress(module, "D3DPreprocess");
...@@ -1736,7 +1740,7 @@ START_TEST(asm) ...@@ -1736,7 +1740,7 @@ START_TEST(asm)
{ {
if (!load_d3dcompiler()) if (!load_d3dcompiler())
{ {
win_skip("Could not load d3dcompiler_43.dll\n"); win_skip("Could not load DLL.\n");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment