summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
index acd382cdb..b9709136d 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp
@@ -694,6 +694,10 @@ void CoordinatedGraphicsScene::purgeGLResources()
m_backingStores.clear();
m_backingStoresWithPendingBuffers.clear();
+ LayerMap::iterator end = m_layers.end();
+ for (LayerMap::iterator it = m_layers.begin(); it != end; ++it)
+ it->value->setBackingStore(0);
+
setActive(false);
dispatchOnMainThread(bind(&CoordinatedGraphicsScene::purgeBackingStores, this));
}