From e2366afb57d69f3952bbb4d1894d82293cd1cb9d Mon Sep 17 00:00:00 2001 From: Kasullian Date: Wed, 10 Sep 2025 07:16:42 -0400 Subject: remove unnecessary code --- src/render/gl_batch.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/render/gl_batch.h') diff --git a/src/render/gl_batch.h b/src/render/gl_batch.h index 7ca9fe3..944521f 100644 --- a/src/render/gl_batch.h +++ b/src/render/gl_batch.h @@ -91,7 +91,6 @@ inline void gl_batch_empty( GL_BATCH* batch ) { template inline void gl_batch_draw( GL_BATCH* 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 ); @@ -118,7 +117,6 @@ inline void gl_batch_draw( GL_BATCH* batch ) { gl_set_viewport( batch->gl, vp_start, vp_dim ); gl_set_clip( batch->gl, clip_start, clip_dim ); - glBindVertexArray( 0 ); } template -- cgit v1.2.3