Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
index d0f75fcae8b4f0af5dc0d06a431493bca717fb04..f5d3f7ba3981d1574c6ed5cc4082c5bec1a48bd1 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -1245,6 +1245,9 @@ bool WebGLRenderingContextBase::paintRenderingResultsToCanvas(SourceDrawingBuffe |
canvas()->clearCopiedImage(); |
m_markedCanvasDirty = false; |
+ if (!canvas()->buffer()) |
+ return false; |
+ |
ScopedTexture2DRestorer restorer(this); |
ScopedFramebufferRestorer fboRestorer(this); |