Title: [225713] trunk/Source/WebCore/html/OffscreenCanvas.cpp
- Revision
- 225713
- Author
- d...@apple.com
- Date
- 2017-12-08 15:53:45 -0800 (Fri, 08 Dec 2017)
Log Message
Hopefully fix Windows build
Modified Paths
Diff
Modified: trunk/Source/WebCore/html/OffscreenCanvas.cpp (225712 => 225713)
--- trunk/Source/WebCore/html/OffscreenCanvas.cpp 2017-12-08 23:32:16 UTC (rev 225712)
+++ trunk/Source/WebCore/html/OffscreenCanvas.cpp 2017-12-08 23:53:45 UTC (rev 225713)
@@ -101,6 +101,7 @@
if (!m_context)
return nullptr;
+#if ENABLE(WEBGL)
if (!is<WebGLRenderingContext>(*m_context))
return nullptr;
@@ -128,6 +129,9 @@
gc3d->clearColor(clearColor[0], clearColor[1], clearColor[2], clearColor[3]);
return WTFMove(imageBitmap);
+#else
+ return nullptr;
+#endif
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes