Hopefully fix Windows build
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2017 23:53:45 +0000 (23:53 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2017 23:53:45 +0000 (23:53 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225713 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/html/OffscreenCanvas.cpp

index 3104393..03a10f3 100644 (file)
@@ -101,6 +101,7 @@ RefPtr<ImageBitmap> OffscreenCanvas::transferToImageBitmap()
     if (!m_context)
         return nullptr;
 
+#if ENABLE(WEBGL)
     if (!is<WebGLRenderingContext>(*m_context))
         return nullptr;
 
@@ -128,6 +129,9 @@ RefPtr<ImageBitmap> OffscreenCanvas::transferToImageBitmap()
     gc3d->clearColor(clearColor[0], clearColor[1], clearColor[2], clearColor[3]);
 
     return WTFMove(imageBitmap);
+#else
+    return nullptr;
+#endif
 }
 
 }