Title: [165865] trunk/Source/WebCore
Revision
165865
Author
[email protected]
Date
2014-03-18 19:02:00 -0700 (Tue, 18 Mar 2014)

Log Message

[WebGL] Destroy EAGLContext's backing store
https://bugs.webkit.org/show_bug.cgi?id=130439
<rdar://problem/16295217>

Reviewed by Tim Horton.

When a GraphicsContext3D is being destroyed, we should
also remove any EAGLContext backing store.

* platform/graphics/mac/GraphicsContext3DMac.mm:
(WebCore::GraphicsContext3D::~GraphicsContext3D):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (165864 => 165865)


--- trunk/Source/WebCore/ChangeLog	2014-03-19 01:57:35 UTC (rev 165864)
+++ trunk/Source/WebCore/ChangeLog	2014-03-19 02:02:00 UTC (rev 165865)
@@ -1,3 +1,17 @@
+2014-03-18  Dean Jackson  <[email protected]>
+
+        [WebGL] Destroy EAGLContext's backing store
+        https://bugs.webkit.org/show_bug.cgi?id=130439
+        <rdar://problem/16295217>
+
+        Reviewed by Tim Horton.
+
+        When a GraphicsContext3D is being destroyed, we should
+        also remove any EAGLContext backing store.
+
+        * platform/graphics/mac/GraphicsContext3DMac.mm:
+        (WebCore::GraphicsContext3D::~GraphicsContext3D):
+
 2014-03-18  Tim Horton  <[email protected]>
 
         [iOS][WebKit2] Mark layer contents as being opaque if they are

Modified: trunk/Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm (165864 => 165865)


--- trunk/Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm	2014-03-19 01:57:35 UTC (rev 165864)
+++ trunk/Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm	2014-03-19 02:02:00 UTC (rev 165865)
@@ -295,6 +295,7 @@
     if (m_contextObj) {
 #if PLATFORM(IOS)
         makeContextCurrent();
+        [m_contextObj renderbufferStorage:GL_RENDERBUFFER fromDrawable:nil];
         ::glDeleteRenderbuffers(1, &m_texture);
         ::glDeleteRenderbuffers(1, &m_compositorTexture);
 #else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to