We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0fac1 commit d12aa51Copy full SHA for d12aa51
renderdoc/driver/gl/gl_replay.cpp
@@ -941,7 +941,10 @@ void GLReplay::SavePipelineState()
941
942
fmt.type = ResourceFormatType::Regular;
943
fmt.compCount = 4;
944
- gl.glGetVertexAttribiv(i, eGL_VERTEX_ATTRIB_ARRAY_SIZE, (GLint *)&fmt.compCount);
+ GLint compCount;
945
+ gl.glGetVertexAttribiv(i, eGL_VERTEX_ATTRIB_ARRAY_SIZE, (GLint *)&compCount);
946
+
947
+ fmt.compCount = (uint8_t)compCount;
948
949
bool intComponent = !normalized || integer;
950
@@ -1001,7 +1004,7 @@ void GLReplay::SavePipelineState()
1001
1004
break;
1002
1005
}
1003
1006
- if(fmt.compCount == eGL_BGRA)
1007
+ if(compCount == eGL_BGRA)
1008
{
1009
fmt.compByteWidth = 1;
1010
0 commit comments