From 6515c5ab8f17319ca8c48ae47c930f67749ef4d2 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Mon, 30 Nov 2020 18:11:12 +0000 Subject: [PATCH] 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 --- gl_textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2