Bug 1371190 - (Rebase)
Bug 1366425 - Avoid losing context on out of memory error for ANGLE
--- a/gfx/angle/src/libANGLE/Context.cpp
+++ b/gfx/angle/src/libANGLE/Context.cpp
@@ -2817,22 +2817,16 @@ void Context::updateCaps()
if (!mImplementation->getNativeExtensions().getProgramBinary)
{
mMemoryProgramCache = nullptr;
}
}
void Context::initWorkarounds()
{
- // Apply back-end workarounds.
- mImplementation->applyNativeWorkarounds(&mWorkarounds);
-
- // Lose the context upon out of memory error if the application is
- // expecting to watch for those events.
- mWorkarounds.loseContextOnOutOfMemory = (mResetStrategy == GL_LOSE_CONTEXT_ON_RESET_EXT);
}
Error Context::prepareForDraw(GLenum drawMode)
{
syncRendererState();
InfoLog infoLog;
Error err = mImplementation->triggerDrawCallProgramRecompilation(this, &infoLog,