summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp')
-rw-r--r--Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp b/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
index 1c7289cec..9824eb55f 100644
--- a/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp
@@ -221,6 +221,10 @@ void GraphicsContext3DPrivate::initializeANGLE()
GraphicsContext3DPrivate::~GraphicsContext3DPrivate()
{
+#if USE(ACCELERATED_COMPOSITING)
+ if (TextureMapperPlatformLayer::Client* client = TextureMapperPlatformLayer::client())
+ client->platformLayerWasDestroyed();
+#endif
delete m_surfaceOwner;
m_surfaceOwner = 0;
}