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,10 +54,13 @@ bool Renderer::initializeCompiler() ...@@ -54,10 +54,13 @@ bool Renderer::initializeCompiler()
break; break;
} }
} }
#else #endif // ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES
if (!mD3dCompilerModule)
{
// Load the version of the D3DCompiler DLL associated with the Direct3D version ANGLE was built with. // Load the version of the D3DCompiler DLL associated with the Direct3D version ANGLE was built with.
mD3dCompilerModule = LoadLibrary(D3DCOMPILER_DLL); mD3dCompilerModule = LoadLibrary(D3DCOMPILER_DLL);
#endif // ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES }
if (!mD3dCompilerModule) if (!mD3dCompilerModule)
{ {
......
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