mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Don't call GetBaseFormat/GetDataType for compressed formats
* The result is not needed and the call is invalid.
This commit is contained in:
@@ -1413,8 +1413,8 @@ bool GLResourceManager::Serialise_InitialState(SerialiserType &ser, ResourceId i
|
||||
GLsizei h = (GLsizei)TextureState.height;
|
||||
GLsizei d = (GLsizei)TextureState.depth;
|
||||
|
||||
GLenum baseFormat = GetBaseFormat(TextureState.internalformat);
|
||||
GLenum dataType = GetDataType(TextureState.internalformat);
|
||||
GLenum baseFormat = isCompressed ? eGL_NONE : GetBaseFormat(TextureState.internalformat);
|
||||
GLenum dataType = isCompressed ? eGL_NONE : GetDataType(TextureState.internalformat);
|
||||
|
||||
if(details.initFormatHint != eGL_NONE)
|
||||
baseFormat = details.initFormatHint;
|
||||
|
||||
Reference in New Issue
Block a user