]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
gl_textures: Remove redundant check. glt->bufferpixels being non-NULL already shortci...
[xonotic/darkplaces.git] / 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;