From: cloudwalk Date: Mon, 30 Nov 2020 18:11:12 +0000 (+0000) Subject: gl_textures: Remove redundant check. glt->bufferpixels being non-NULL already shortci... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6515c5ab8f17319ca8c48ae47c930f67749ef4d2;p=xonotic%2Fdarkplaces.git gl_textures: Remove redundant check. glt->bufferpixels being non-NULL already shortcircuits this git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13061 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index b45c620b..ee3d575b 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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;