From: havoc Date: Mon, 28 Nov 2016 04:00:44 +0000 (+0000) Subject: Remove redundant call to R_MakeResizeBufferBigger, which was also breaking C89 by... X-Git-Tag: xonotic-v0.8.5~88^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a14c8551a8cf14e9add55ba007695823eebdd24f;p=xonotic%2Fdarkplaces.git 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 --- 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