Fix restoring VAO state with double-formatted attribs

This commit is contained in:
baldurk
2017-05-04 20:36:46 +01:00
parent 37379043a1
commit c4740054ca
+3 -1
View File
@@ -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