commit fb07cb5c7c82eff2061d1a650e9b0ded7fd93044 parent 47b0d3c416b3c7260ad83246a9efb13f25cb8f19 Author: Michael Savage <mikejsavage@gmail.com> Date: Tue Aug 18 21:16:32 +0200 Unbind VBOs after we are done in immediate_render Diffstat:
immediate.cc | | | 1 | + |
diff --git a/immediate.cc b/immediate.cc @@ -41,6 +41,7 @@ void immediate_render( ImmediateContext * const ctx, const GLuint at_position, c glDrawArrays( GL_TRIANGLES, 0, ctx->num_triangles * 3 ); + glBindBuffer( GL_ARRAY_BUFFER, 0 ); glDeleteBuffers( 2, vbos ); }