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 2333487..d2903d3 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);
        }