]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
Refactored lightmap update handling and added cvars to replace gl_nopartialtextureupd...
[xonotic/darkplaces.git] / gl_draw.c
index 3de01e19d5c3443f6989a24851d893f1a3b3ef1d..d625740e48c6996a1fc27ded907866c924fdeb2e 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -267,7 +267,7 @@ cachepic_t *Draw_NewPic(const char *picname, int width, int height, unsigned cha
                if (pic->flags & CACHEPICFLAG_NEWPIC && pic->skinframe && pic->skinframe->base && pic->width == width && pic->height == height)
                {
                        Con_DPrintf("Draw_NewPic(\"%s\"): frame %i: updating texture\n", picname, draw_frame);
-                       R_UpdateTexture(pic->skinframe->base, pixels_bgra, 0, 0, 0, width, height, 1);
+                       R_UpdateTexture(pic->skinframe->base, pixels_bgra, 0, 0, 0, width, height, 1, 0);
                        R_SkinFrame_MarkUsed(pic->skinframe);
                        pic->lastusedframe = draw_frame;
                        return pic;