From a14c8551a8cf14e9add55ba007695823eebdd24f Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 28 Nov 2016 04:00:44 +0000 Subject: [PATCH] Remove redundant call to R_MakeResizeBufferBigger, which was also breaking C89 by having mixed variables and code. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12303 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gl_textures.c b/gl_textures.c index fc3d2ec1..14685e79 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -1573,7 +1573,6 @@ static void R_UploadFullTexture(gltexture_t *glt, const unsigned char *data) case GLTEXTURETYPE_CUBEMAP: if (glt->inputwidth != width || glt->inputheight != height || glt->inputdepth != depth) { - R_MakeResizeBufferBigger(width * height * depth * glt->sides * glt->bytesperpixel); unsigned char *combinedbuffer = (unsigned char *)Mem_Alloc(tempmempool, glt->tilewidth*glt->tileheight*glt->tiledepth*glt->sides*glt->bytesperpixel); // convert and upload each side in turn, // from a continuous block of input texels -- 2.39.2