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,13 +53,16 @@ bool Renderer::initializeCompiler() ...@@ -53,13 +53,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