thin3d: Clear bound VBOs when not using.

Nothing clears them, so if one draw does, any later UP draws won't work.
This commit is contained in:
Unknown W. Brackets 2016-02-13 12:21:12 -08:00
parent 4f1851abc1
commit ac4ee88c73

View file

@ -813,6 +813,8 @@ void Thin3DGLContext::DrawUP(T3DPrimitive prim, Thin3DShaderSet *shaderSet, Thin
fmt->Apply(vdata);
ss->Apply();
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
glDrawArrays(primToGL[prim], 0, vertexCount);
ss->Unapply();