| Index: Source/core/html/canvas/WebGLRenderingContext.cpp
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| index 619a418db439dd1e8f00c96264d8131681147442..3f260d4c01dda463c8bd888c865ac1a8b5223541 100644
|
| --- a/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| +++ b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| @@ -94,7 +94,7 @@ PassOwnPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTMLCanvasElemen
|
| renderingContext->registerContextExtensions();
|
| renderingContext->suspendIfNeeded();
|
|
|
| - if (renderingContext->m_drawingBuffer->isZeroSized()) {
|
| + if (!renderingContext->m_drawingBuffer) {
|
| canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcontextcreationerror, false, true, "Could not create a WebGL context."));
|
| return nullptr;
|
| }
|
|
|