mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 06:24:57 +00:00
Fix restoring VAO state with double-formatted attribs
This commit is contained in:
1 parent
37379043a1
commit
c4740054ca
1 file changed
+3
-1
@@ -2114,7 +2114,9 @@ void GLResourceManager::Apply_InitialState(GLResource live, InitialContentData i
|
||||
|
||||
if(attrib.size != 0)
|
||||
{
|
||||
if(initialdata->VertexAttribs[i].integer == 0)
|
||||
if(attrib.type == eGL_DOUBLE)
|
||||
gl.glVertexAttribLFormat(i, attrib.size, attrib.type, attrib.offset);
|
||||
else if(attrib.integer == 0)
|
||||
gl.glVertexAttribFormat(i, attrib.size, attrib.type, (GLboolean)attrib.normalized,
|
||||
attrib.offset);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user