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
diff --git a/src/libGLESv2/renderer/Renderer.cpp b/src/libGLESv2/renderer/Renderer.cpp
index 70b9326..e0b3abc 100644
--- a/src/libGLESv2/renderer/Renderer.cpp
+++ b/src/libGLESv2/renderer/Renderer.cpp
@@ -53,13 +53,16 @@
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
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");
return false;
}