| Index: Source/platform/graphics/ImageBuffer.cpp
|
| diff --git a/Source/platform/graphics/ImageBuffer.cpp b/Source/platform/graphics/ImageBuffer.cpp
|
| index 4db922e11d60bdb88d26bb1511372094572f2121..e1e626a8b72539b2a32fc82078cea613a0e4c017 100644
|
| --- a/Source/platform/graphics/ImageBuffer.cpp
|
| +++ b/Source/platform/graphics/ImageBuffer.cpp
|
| @@ -208,15 +208,9 @@ bool ImageBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, Platform3
|
| Platform3DObject sourceTexture = context->createAndConsumeTextureCHROMIUM(GL_TEXTURE_2D, mailbox->name);
|
|
|
| // The canvas is stored in a premultiplied format, so unpremultiply if necessary.
|
| - context->pixelStorei(GC3D_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, !premultiplyAlpha);
|
| -
|
| // The canvas is stored in an inverted position, so the flip semantics are reversed.
|
| - context->pixelStorei(GC3D_UNPACK_FLIP_Y_CHROMIUM, !flipY);
|
| context->copyTextureCHROMIUM(GL_TEXTURE_2D, sourceTexture, texture, internalFormat, destType, flipY ? GL_FALSE : GL_TRUE, GL_FALSE, premultiplyAlpha ? GL_FALSE : GL_TRUE);
|
|
|
| - context->pixelStorei(GC3D_UNPACK_FLIP_Y_CHROMIUM, false);
|
| - context->pixelStorei(GC3D_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, false);
|
| -
|
| context->deleteTexture(sourceTexture);
|
|
|
| context->flush();
|
|
|