[Win] Allow WebKit to build without ANGLE support
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Apr 2015 19:04:36 +0000 (19:04 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Apr 2015 19:04:36 +0000 (19:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=144459
<rdar://problem/20707307>

Reviewed by Dean Jackson.

* platform/graphics/GLContext.cpp: Use the ENABLE(GRAPHICS_CONTEXT_3D)
macro to avoid compiling this code if not using WEBGL/3D contexts.

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

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

index ea22507..a5bf04d 100644 (file)
@@ -1,3 +1,14 @@
+2015-04-30  Brent Fulgham  <bfulgham@apple.com>
+
+        [Win] Allow WebKit to build without ANGLE support
+        https://bugs.webkit.org/show_bug.cgi?id=144459
+        <rdar://problem/20707307>
+
+        Reviewed by Dean Jackson.
+
+        * platform/graphics/GLContext.cpp: Use the ENABLE(GRAPHICS_CONTEXT_3D)
+        macro to avoid compiling this code if not using WEBGL/3D contexts.
+
 2015-04-29  David Hyatt  <hyatt@apple.com>
 
         Avoid containingBlock() calls when no writing mode flipping is needed.
index bf68af7..f5624ec 100644 (file)
@@ -17,6 +17,9 @@
  */
 
 #include "config.h"
+
+#if ENABLE(GRAPHICS_CONTEXT_3D)
+
 #include "GLContext.h"
 
 #if USE(EGL)
@@ -197,4 +200,4 @@ GLContext* GLContext::getCurrent()
 
 } // namespace WebCore
 
-
+#endif