git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10731
d7cf8633-e32d-0410-b094-
e92efae38249
wantedsize = bound(65536, wantedsize, 1000*1024*1024);
if (!r_framedata_mem || r_framedata_mem->wantedsize != wantedsize)
{
- r_framedata_mem_t *newmem = Mem_Alloc(r_main_mempool, wantedsize);
+ r_framedata_mem_t *newmem = (r_framedata_mem_t *)Mem_Alloc(r_main_mempool, wantedsize);
newmem->wantedsize = wantedsize;
newmem->data = (unsigned char *)(((size_t)(newmem+1) + 15) & ~15);
newmem->size = (unsigned char *)newmem + wantedsize - newmem->data;