From 385f54d5238502e25e8b828147b7ac59c7004ea5 Mon Sep 17 00:00:00 2001 From: Michael Rennie Date: Mon, 8 May 2017 13:48:25 +0100 Subject: [PATCH] GL_UNSIGNED_BYTE mapped to CompType::UNorm in MakeResourceFormat. For the opposite in MakeGLFormat, we already return GL_RGBA8 from UNorm. Encountered with fmt of GL_BGRA8_EXT. --- renderdoc/driver/gl/gl_common.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/driver/gl/gl_common.cpp b/renderdoc/driver/gl/gl_common.cpp index a754f108f..7743305ad 100644 --- a/renderdoc/driver/gl/gl_common.cpp +++ b/renderdoc/driver/gl/gl_common.cpp @@ -1437,6 +1437,7 @@ ResourceFormat MakeResourceFormat(const GLHookSet &gl, GLenum target, GLenum fmt switch(edata[0]) { case eGL_UNSIGNED_INT: ret.compType = CompType::UInt; break; + case eGL_UNSIGNED_BYTE: case eGL_UNSIGNED_NORMALIZED: ret.compType = CompType::UNorm; break; case eGL_SIGNED_NORMALIZED: ret.compType = CompType::SNorm; break; case eGL_FLOAT: ret.compType = CompType::Float; break;