Bug 1371190 - (Rebase)Bug 1366425 - Avoid losing context on out of memory error for ANGLE draft
authorSamuel Vargas <svargas@mozilla.com>
Fri, 19 May 2017 17:54:53 -0700
changeset 658936 6997fd9ba05a624c596cab8bca9dc82f4fbc016e
parent 658935 c3c2dec08adeac11fdb5f6ffbd64d46f52fe824b
child 658937 faa1bcaca7cf45f6a879530b668f285146c03d38
push id77932
push userbmo:cleu@mozilla.com
push dateTue, 05 Sep 2017 06:01:19 +0000
bugs1371190, 1366425
milestone57.0a1
Bug 1371190 - (Rebase)Bug 1366425 - Avoid losing context on out of memory error for ANGLE
gfx/angle/src/libANGLE/Context.cpp
--- 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,