Make sure disabling attribute arrays also resets the counter so we don't

do it twice.
This commit is contained in:
Antonis Ryakiotakis 2015-03-16 12:14:13 +01:00
parent 2fa593a6f7
commit 86c828d9fd
1 changed files with 1 additions and 0 deletions

View File

@ -1364,6 +1364,7 @@ void GPU_buffer_unbind(void)
else
break;
}
attribData[0].index = -1;
/* not guaranteed we used VBOs but in that case it's just a no-op */
if (GLEW_ARB_vertex_buffer_object)