Bug 1371190 - (Rebase)Bug 1366425 - Avoid losing context on out of memory error for ANGLE draft
authorChih-Yi Leu <subsevenx2001@gmail.com>
Wed, 04 Oct 2017 17:27:53 +0800
changeset 675286 65022b9de73513eed1fa009072878fddfa438171
parent 675285 a637e9eb226f047ee3b8f0070207ab3d74f67526
child 676638 2677e69995ad4a8843c8df482bbedfcc73c3516f
push id83094
push userbmo:cleu@mozilla.com
push dateThu, 05 Oct 2017 03:39:09 +0000
bugs1371190, 1366425
milestone58.0a1
Bug 1371190 - (Rebase)Bug 1366425 - Avoid losing context on out of memory error for ANGLE MozReview-Commit-ID: 9bJJQ9BaYTS
gfx/angle/src/libANGLE/Context.cpp
--- a/gfx/angle/src/libANGLE/Context.cpp
+++ b/gfx/angle/src/libANGLE/Context.cpp
@@ -2817,17 +2817,17 @@ void Context::updateCaps()
 
 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);
+    mWorkarounds.loseContextOnOutOfMemory = false;
 }
 
 void Context::syncRendererState()
 {
     mGLState.syncDirtyObjects(this);
     const State::DirtyBits &dirtyBits = mGLState.getDirtyBits();
     mImplementation->syncState(this, dirtyBits);
     mGLState.clearDirtyBits();