| Index: Source/core/html/canvas/WebGLRenderingContext.cpp
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| index 2765136729147e50d659cb5b54cec120d18bae49..b32cfc8f94fbdded71a57b8b7ca7f572cfd6f320 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;
|
| }
|
|
|