twn_gl_15_rendering.c: only disable color array for sprite batch if it was used

This commit is contained in:
veclav talica 2024-10-08 00:51:46 +03:00
parent fd6615744e
commit 1f8a225f89

View File

@ -339,7 +339,9 @@ void finally_render_sprites(const Primitive2D primitives[],
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
if (!batch.constant_colored)
glDisableClientState(GL_COLOR_ARRAY);
glBindTexture(GL_TEXTURE_2D, 0);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);