Support getting transfer format for BGRA textures.
authorJarkko Pöyry <jpoyry@google.com>
Tue, 14 Apr 2015 22:31:49 +0000 (15:31 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Fri, 17 Apr 2015 02:16:31 +0000 (19:16 -0700)
Change-Id: I3de348f27d061c91f3c54384b8bccd868137ea0a

framework/opengl/gluTextureUtil.cpp

index 23334879a49a81dceb00a43963b9761a2fef222f..d2903d3cccae1b70c0b53d7ab76ad7e5b76ad8c2 100644 (file)
@@ -84,6 +84,11 @@ TransferFormat getTransferFormat (tcu::TextureFormat texFormat)
                case TextureFormat::DS:         format = GL_DEPTH_STENCIL;                                              break;
                case TextureFormat::S:          format = GL_STENCIL_INDEX;                                              break;
 
+               case TextureFormat::BGRA:
+                       DE_ASSERT(!isInt);
+                       format = GL_BGRA;
+                       break;
+
                default:
                        DE_ASSERT(false);
        }