Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 389273002: Fix copyImage for WebGL elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: seperated negative test Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698