// use the largest scrap texture size we can (not sure if this is really a good idea)
for (block_size = 1;block_size < realmaxsize && block_size < gl_max_scrapsize.integer;block_size <<= 1);
- texturemempool = Mem_AllocPool("Texture Info");
- texturedatamempool = Mem_AllocPool("Texture Storage (not yet uploaded)");
- textureprocessingmempool = Mem_AllocPool("Texture Processing Buffers");
+ texturemempool = Mem_AllocPool("Texture Info", 0, NULL);
+ texturedatamempool = Mem_AllocPool("Texture Storage (not yet uploaded)", 0, NULL);
+ textureprocessingmempool = Mem_AllocPool("Texture Processing Buffers", 0, NULL);
// Disable JPEG screenshots if the DLL isn't loaded
if (! JPEG_OpenLibrary ())
if (prevbuffer == NULL)
{
R_MakeResizeBufferBigger(glt->image->width * glt->image->height * glt->image->depth * glt->image->bytesperpixel);
- memset(resizebuffer, 255, glt->width * glt->height * glt->image->depth * glt->image->bytesperpixel);
+ memset(resizebuffer, 0, glt->width * glt->height * glt->image->depth * glt->image->bytesperpixel);
prevbuffer = resizebuffer;
}
else if (glt->textype->textype == TEXTYPE_PALETTE)
width = glt->image->width;
height = glt->image->height;
depth = glt->image->depth;
- memset(resizebuffer, 255, width * height * depth * glt->image->bytesperpixel);
+ memset(resizebuffer, 0, width * height * depth * glt->image->bytesperpixel);
prevbuffer = resizebuffer;
}
else