diff options
| -rw-r--r-- | src/render/gl_batch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/gl_batch.h b/src/render/gl_batch.h index 944521f..7ca9fe3 100644 --- a/src/render/gl_batch.h +++ b/src/render/gl_batch.h @@ -91,6 +91,7 @@ inline void gl_batch_empty( GL_BATCH<VERTEX>* batch ) { template <typename VERTEX> inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) { glUseProgram( batch->shader->id ); + glBindVertexArray( batch->gl->vao ); VEC2 vp_start, vp_dim, clip_start, clip_dim; gl_get_viewport( batch->gl, &vp_start, &vp_dim ); @@ -117,6 +118,7 @@ inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) { gl_set_viewport( batch->gl, vp_start, vp_dim ); gl_set_clip( batch->gl, clip_start, clip_dim ); + glBindVertexArray( 0 ); } template <typename VERTEX> |
