]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
Remove redundant call to R_MakeResizeBufferBigger, which was also breaking C89 by...
[xonotic/darkplaces.git] / 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