Index: trunk/Source/core/html/canvas/WebGLRenderingContext.cpp |
=================================================================== |
--- trunk/Source/core/html/canvas/WebGLRenderingContext.cpp (revision 168480) |
+++ trunk/Source/core/html/canvas/WebGLRenderingContext.cpp (working copy) |
@@ -94,7 +94,7 @@ |
renderingContext->registerContextExtensions(); |
renderingContext->suspendIfNeeded(); |
- if (!renderingContext->m_drawingBuffer) { |
+ if (renderingContext->m_drawingBuffer->isZeroSized()) { |
canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcontextcreationerror, false, true, "Could not create a WebGL context.")); |
return nullptr; |
} |