Bug 1366425 - Avoid losing context on out of memory error for ANGLE - r=jgilbert
authorSamuel Vargas <svargas@mozilla.com>
Fri, 19 May 2017 17:54:53 -0700
changeset 360711 5508827d35e1c96bec215db6adb14cb1f7c06345
parent 360710 74b2d6cfaee395ed121995e05ee941b3f8721c56
child 360745 862e534ade6d17176b09aeeb5dae63fdb53eddeb
push id90720
push userjgilbert@mozilla.com
push dateThu, 25 May 2017 23:12:59 +0000
treeherdermozilla-inbound@5508827d35e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1366425
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1366425 - Avoid losing context on out of memory error for ANGLE - r=jgilbert
gfx/angle/src/libANGLE/Context.cpp
--- a/gfx/angle/src/libANGLE/Context.cpp
+++ b/gfx/angle/src/libANGLE/Context.cpp
@@ -2510,19 +2510,16 @@ void Context::updateCaps()
         }
 
         mTextureCaps.insert(format, formatCaps);
     }
 }
 
 void Context::initWorkarounds()
 {
-    // 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);
 }
 
 void Context::syncRendererState()
 {
     const State::DirtyBits &dirtyBits = mGLState.getDirtyBits();
     mImplementation->syncState(mGLState, dirtyBits);
     mGLState.clearDirtyBits();
     mGLState.syncDirtyObjects();