]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
gl_textures: Totally disable the partial update codepath until it can be done correctly.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Nov 2020 21:50:23 +0000 (21:50 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Nov 2020 21:50:23 +0000 (21:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13053 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 6a6aa5c0112e77978ca3c9e6f89f7e1482403d24..0bb0a2939f12d194d9d44a63c25a41d5995a9e0f 100644 (file)
@@ -2277,7 +2277,7 @@ void R_UpdateTexture(rtexture_t *rt, const unsigned char *data, int x, int y, in
                return;
        }
        // update part of the texture
-       if (glt->bufferpixels && (x || y || z || width != glt->inputwidth || height != glt->inputheight || depth != glt->inputdepth))
+       if (glt->bufferpixels || (glt->bufferpixels && (x || y || z || width != glt->inputwidth || height != glt->inputheight || depth != glt->inputdepth)))
        {
                int j;
                int bpp = glt->bytesperpixel;
@@ -2307,7 +2307,7 @@ void R_UpdateTexture(rtexture_t *rt, const unsigned char *data, int x, int y, in
                        return;
 
                output += y*outputskip + x*bpp;
-
+               /* Cloudwalk FIXME: Broken shit, disabled for now.
                // TODO: Optimize this further.
                if(!gl_nopartialtextureupdates.integer)
                {
@@ -2336,6 +2336,7 @@ void R_UpdateTexture(rtexture_t *rt, const unsigned char *data, int x, int y, in
                        if(!&glt->modifiedpixels || &output < &glt->modifiedpixels)
                                glt->modifiedpixels = output;
                }
+               */
 
                for (j = 0;j < height;j++, output += outputskip, input += inputskip)
                        memcpy(output, input, width*bpp);