Chromium Code Reviews| Index: gpu/command_buffer/service/texture_manager.cc |
| diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc |
| index f6a75dd40e91325cd5bc88ee00c8f5b83fb822d3..8b22a77573a6355ba6f7cc0f30f637423c10756c 100644 |
| --- a/gpu/command_buffer/service/texture_manager.cc |
| +++ b/gpu/command_buffer/service/texture_manager.cc |
| @@ -2882,7 +2882,14 @@ GLenum TextureManager::AdjustTexInternalFormat( |
| GetCompatibilitySwizzle(format); |
| if (swizzle) |
| return swizzle->dest_format; |
| + |
| + // Compatibility format substitutions that do not require swizzling |
| + if (format == GL_BGRA_EXT) |
| + return GL_RGBA; |
| + if (format == GL_BGRA8_EXT) |
| + return GL_RGBA8; |
|
piman
2016/07/19 20:32:30
This transformation should already happen at a low
Justin Novosad
2016/07/19 21:45:25
Thanks for pointing this out. I did a bit of inves
piman
2016/07/19 21:56:08
Ah, Ozone indeed does use the ES backend of Mesa.
|
| } |
| + |
| return format; |
| } |