]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
added gl_mesh_batching (default on) which merges several meshes in a row to reduce...
[xonotic/darkplaces.git] / gl_textures.c
index 6bcd55a8a4b51b3665d088b106c5ef16588c0e26..8ed0cca9b8d74b6a935475b3457b17694ba9f080 100644 (file)
@@ -372,7 +372,6 @@ static void GL_TextureMode_f (void)
                        }
                }
        }
-       gl_backend_rebindtextures = true;
 }
 
 static int R_CalcTexelDataSize (gltexture_t *glt)
@@ -608,6 +607,8 @@ static void R_Upload(gltexture_t *glt, qbyte *data)
        qbyte *prevbuffer;
        prevbuffer = data;
 
+       R_Mesh_EndBatch();
+
        CHECKGLERROR
 
        glt->texnum = glt->image->texnum;