Index: Source/platform/graphics/gpu/DrawingBuffer.cpp |
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
index e27e8b76ae5b5f9adadabc92a77cc4f1c2c5bf9e..4eb3efc2f0c41fafa40188955b9d2a59ca3321d8 100644 |
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp |
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp |
@@ -441,7 +441,7 @@ bool DrawingBuffer::copyToPlatformTexture(blink::WebGraphicsContext3D* context, |
return false; |
GLint textureId = m_colorBuffer.textureId; |
- if (fromFrontBuffer) |
+ if (fromFrontBuffer && m_frontColorBuffer.textureId) |
textureId = m_frontColorBuffer.textureId; |
if (m_contentsChanged) { |