]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Remove redundant call to R_MakeResizeBufferBigger, which was also breaking C89 by...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Nov 2016 04:00:44 +0000 (04:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Nov 2016 04:00:44 +0000 (04:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12303 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index fc3d2ec1d601059193546e88fc710241df70c5b1..14685e7949e1fe87a5b4fec166c3749f26bf6812 100644 (file)
@@ -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