]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
gl_textures: Remove redundant check. glt->bufferpixels being non-NULL already shortci...
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Nov 2020 18:11:12 +0000 (18:11 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Nov 2020 18:11:12 +0000 (18:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13061 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index b45c620b438f9c171c1b42c997348626504f55a2..ee3d575b7ebc69a3232a5cbc1b2e256669cad28f 100644 (file)
@@ -2274,7 +2274,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 || (glt->bufferpixels && (x || y || z || width != glt->inputwidth || height != glt->inputheight || depth != glt->inputdepth)))
+       if (glt->bufferpixels)
        {
                size_t j, bpp = glt->bytesperpixel;