diff options
Diffstat (limited to 'WebCore/platform/graphics/GraphicsContext3D.cpp')
-rw-r--r-- | WebCore/platform/graphics/GraphicsContext3D.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/GraphicsContext3D.cpp b/WebCore/platform/graphics/GraphicsContext3D.cpp index 97465e2..a5ca8c7 100644 --- a/WebCore/platform/graphics/GraphicsContext3D.cpp +++ b/WebCore/platform/graphics/GraphicsContext3D.cpp @@ -54,7 +54,8 @@ bool GraphicsContext3D::extractImageData(Image* image, image->height(), flipY, alphaOp); - *internalFormat = (hasAlphaChannel ? RGBA : RGB); + // For GLES2 tex functions, internalformat has to match format. + *internalFormat = *format; return true; } |