mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 13:45:55 +00:00
Handle cubemap face targets in GetSizedFormat
This commit is contained in:
@@ -386,6 +386,19 @@ GLenum GetSizedFormat(const GLHookSet &gl, GLenum target, GLenum internalFormat)
|
||||
default:
|
||||
return internalFormat; // already explicitly sized
|
||||
}
|
||||
|
||||
switch(target)
|
||||
{
|
||||
case eGL_TEXTURE_CUBE_MAP_POSITIVE_X:
|
||||
case eGL_TEXTURE_CUBE_MAP_NEGATIVE_X:
|
||||
case eGL_TEXTURE_CUBE_MAP_POSITIVE_Y:
|
||||
case eGL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
|
||||
case eGL_TEXTURE_CUBE_MAP_POSITIVE_Z:
|
||||
case eGL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
|
||||
target = eGL_TEXTURE_CUBE_MAP;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
GLint red, depth;
|
||||
gl.glGetInternalformativ(target, internalFormat, eGL_INTERNALFORMAT_RED_SIZE, sizeof(GLint), &red);
|
||||
|
||||
Reference in New Issue
Block a user