]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another void conversion
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Jan 2011 16:30:02 +0000 (16:30 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Jan 2011 16:30:02 +0000 (16:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10731 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 70ac4682ca6bb21186465c612d6e696eb62ec1a2..30624785ba9cd55a43329f1324c6e6c8fbaa6eeb 100644 (file)
@@ -7797,7 +7797,7 @@ void R_FrameData_Resize(void)
        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;