Commit f6d6901c by Geoff Lang

Fall back to LoadLibrary if preloading d3d compiler modules fails.

TRAC #23985 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods
parent c1f8b16b
...@@ -54,13 +54,16 @@ bool Renderer::initializeCompiler() ...@@ -54,13 +54,16 @@ bool Renderer::initializeCompiler()
break; break;
} }
} }
#else
// Load the version of the D3DCompiler DLL associated with the Direct3D version ANGLE was built with.
mD3dCompilerModule = LoadLibrary(D3DCOMPILER_DLL);
#endif // ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES #endif // ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES
if (!mD3dCompilerModule) if (!mD3dCompilerModule)
{ {
// Load the version of the D3DCompiler DLL associated with the Direct3D version ANGLE was built with.
mD3dCompilerModule = LoadLibrary(D3DCOMPILER_DLL);
}
if (!mD3dCompilerModule)
{
ERR("No D3D compiler module found - aborting!\n"); ERR("No D3D compiler module found - aborting!\n");
return false; return false;
} }
......
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