twn_gl_15_rendering.c: only disable color array for sprite batch if it was used
This commit is contained in:
parent
fd6615744e
commit
1f8a225f89
@ -339,6 +339,8 @@ void finally_render_sprites(const Primitive2D primitives[],
|
||||
|
||||
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||
glDisableClientState(GL_VERTEX_ARRAY);
|
||||
|
||||
if (!batch.constant_colored)
|
||||
glDisableClientState(GL_COLOR_ARRAY);
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user