From 08abab445908d076888f3f61f3264a826bcd665c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Tue, 14 Apr 2015 15:31:49 -0700 Subject: [PATCH] Support getting transfer format for BGRA textures. Change-Id: I3de348f27d061c91f3c54384b8bccd868137ea0a --- framework/opengl/gluTextureUtil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/opengl/gluTextureUtil.cpp b/framework/opengl/gluTextureUtil.cpp index 2333487..d2903d3 100644 --- a/framework/opengl/gluTextureUtil.cpp +++ b/framework/opengl/gluTextureUtil.cpp @@ -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); } -- 2.7.4