Commit 0677631a by Geoff Lang

Fall back to LoadLibrary if preloading d3d compiler modules fails.

R=zmo@chromium.org, shannonwoods@chromium.org, jmadill@chromium.org Review URL: https://codereview.appspot.com/14532049
parent 5e70cf9d
...@@ -53,10 +53,13 @@ bool Renderer::initializeCompiler() ...@@ -53,10 +53,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