From ac4ee88c733c1ce1ef17a6736c1288c83bb08073 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 13 Feb 2016 12:21:12 -0800 Subject: [PATCH] thin3d: Clear bound VBOs when not using. Nothing clears them, so if one draw does, any later UP draws won't work. --- ext/native/thin3d/thin3d_gl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/native/thin3d/thin3d_gl.cpp b/ext/native/thin3d/thin3d_gl.cpp index c91c2cfd01..920927f9e7 100644 --- a/ext/native/thin3d/thin3d_gl.cpp +++ b/ext/native/thin3d/thin3d_gl.cpp @@ -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();