| Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| index ffb9370bca76f071a1a3619a96e9a858007bafda..51d94f83a4f6d3f7a47bc929e509b1449b72886a 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| @@ -330,7 +330,8 @@ void CopyTextureCHROMIUMResourceManager::DoCopyTexture(
|
| // format of internalformat.
|
| // https://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml
|
| bool source_format_contain_superset_of_dest_format =
|
| - source_internal_format == dest_internal_format ||
|
| + (source_internal_format == dest_internal_format &&
|
| + source_internal_format != GL_BGRA_EXT) ||
|
| (source_internal_format == GL_RGBA && dest_internal_format == GL_RGB);
|
| // GL_TEXTURE_RECTANGLE_ARB on FBO is supported by OpenGL, not GLES2,
|
| // so restrict this to GL_TEXTURE_2D.
|
|
|