[WinCairo] Compile error.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Sep 2013 16:45:40 +0000 (16:45 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Sep 2013 16:45:40 +0000 (16:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=121839

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-09-24
Reviewed by Brent Fulgham.

* platform/graphics/GraphicsContext3DPrivate.cpp:
(WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate): Added missing guard.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/GraphicsContext3DPrivate.cpp

index 3689d779801b798235a002539cb4528d41da2481..03d39f5804a49a62c02a581a09d19925f533679f 100644 (file)
@@ -1,3 +1,13 @@
+2013-09-24  peavo@outlook.com  <peavo@outlook.com>
+
+        [WinCairo] Compile error.
+        https://bugs.webkit.org/show_bug.cgi?id=121839
+
+        Reviewed by Brent Fulgham.
+
+        * platform/graphics/GraphicsContext3DPrivate.cpp:
+        (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate): Added missing guard.
+
 2013-09-24  Andreas Kling  <akling@apple.com>
 
         Cache continuation() in a local to avoid repeat hash lookups.
index 59c7969c8373f76f21aa63f610b3439183fd91ae..f7324d0d696a0280cd0230e858fcafe55aa4d150 100644 (file)
@@ -75,8 +75,10 @@ GraphicsContext3DPrivate::GraphicsContext3DPrivate(GraphicsContext3D* context, G
 
 GraphicsContext3DPrivate::~GraphicsContext3DPrivate()
 {
+#if USE(ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER)
     if (client())
         client()->platformLayerWillBeDestroyed();
+#endif
 }
 
 bool GraphicsContext3DPrivate::makeContextCurrent()