diff options
Diffstat (limited to 'WebCore/html/HTMLCanvasElement.cpp')
-rw-r--r-- | WebCore/html/HTMLCanvasElement.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WebCore/html/HTMLCanvasElement.cpp b/WebCore/html/HTMLCanvasElement.cpp index c9e4620..72343aa 100644 --- a/WebCore/html/HTMLCanvasElement.cpp +++ b/WebCore/html/HTMLCanvasElement.cpp @@ -156,7 +156,11 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String& type, Canvas } #if ENABLE(3D_CANVAS) Settings* settings = document()->settings(); - if (settings && settings->webGLEnabled() && settings->acceleratedCompositingEnabled()) { + if (settings && settings->webGLEnabled() +#if !PLATFORM(CHROMIUM) && !PLATFORM(QT) + && settings->acceleratedCompositingEnabled() +#endif + ) { // Accept the legacy "webkit-3d" name as well as the provisional "experimental-webgl" name. // Once ratified, we will also accept "webgl" as the context name. if ((type == "webkit-3d") || |