mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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.
This commit is contained in:
committed by
Baldur Karlsson
parent
f19e67bb59
commit
385f54d523
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user