Skip to content
Snippets Groups Projects
Commit 6460d932 authored by DarkGod's avatar DarkGod
Browse files

there we go, about 1000 less draw calls per frame with a single line change !

parent e6f13e22
No related branches found
No related tags found
No related merge requests found
......@@ -1671,7 +1671,7 @@ void display_map_quad(lua_State *L, GLuint *cur_tex, int *vert_idx, int *col_idx
/********************************************************
** Cleanup
********************************************************/
if (m->shader || m->nb_textures || m->next)
if (m->shader || m->nb_textures > 1 || m->next)
{
/* Draw remaining ones */
if (vert_idx) glDrawArrays(GL_QUADS, 0, (*vert_idx) / 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment