[BlackBerry] EGL Context deleted prematurely in GraphicsContext3D destructor
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Oct 2012 20:12:15 +0000 (20:12 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Oct 2012 20:12:15 +0000 (20:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=98796

Patch by Artem Simonov <asimonov@rim.com> on 2012-10-09
Reviewed by George Staikos.

Reordered destruction of GraphicsContext3D so that the compositing layer is
destroyed first.

* platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
(WebCore::GraphicsContext3D::~GraphicsContext3D):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130801 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp

index 40001eb..3877270 100644 (file)
@@ -1,3 +1,16 @@
+2012-10-09  Artem Simonov  <asimonov@rim.com>
+
+        [BlackBerry] EGL Context deleted prematurely in GraphicsContext3D destructor
+        https://bugs.webkit.org/show_bug.cgi?id=98796
+
+        Reviewed by George Staikos.
+
+        Reordered destruction of GraphicsContext3D so that the compositing layer is
+        destroyed first.
+
+        * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
+        (WebCore::GraphicsContext3D::~GraphicsContext3D):
+
 2012-10-09  Ben Wagner  <bungeman@chromium.org>
 
         Disable hinting when webkit-font-smoothing:antialiased is used on Mac.
index d3002cf..a0cd583 100644 (file)
@@ -130,6 +130,7 @@ GraphicsContext3D::~GraphicsContext3D()
         ::glDeleteFramebuffers(1, &m_fbo);
     }
 
+    m_compositingLayer = 0; // Must release compositing layer before destroying the context.
     BlackBerry::Platform::Graphics::destroyWebGLContext(m_context);
 }