From 15c011d84e8108b9e37d30c1169d40eb9ab283e4 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 24 Feb 2011 08:36:56 +0000 Subject: [PATCH] fix two compile errors on D3D9 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10860 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r_shadow.c b/r_shadow.c index 73dc1537..0030b2f8 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2384,7 +2384,7 @@ static void R_Shadow_UpdateBounceGridTexture(void) return; numpixels = resolution[0]*resolution[1]*resolution[2]; // allocate pixels for this update... - pixels = Mem_Alloc(r_main_mempool, numpixels * sizeof(unsigned char[4])); + pixels = (unsigned char *)Mem_Alloc(r_main_mempool, numpixels * sizeof(unsigned char[4])); // figure out what we want to interact with if (r_shadow_bouncegrid_hitmodels.integer) hitsupercontentsmask = SUPERCONTENTS_SOLID | SUPERCONTENTS_BODY | SUPERCONTENTS_LIQUIDSMASK; @@ -2591,7 +2591,7 @@ static void R_Shadow_RenderParticlesForLight(rtlight_t *rtlight) rtlight->particlecache_maxparticles = n; rtlight->particlecache_updateparticle = 0; if (rtlight->particlecache_maxparticles) - rtlight->particlecache_particles = Mem_Alloc(r_main_mempool, rtlight->particlecache_maxparticles * sizeof(*rtlight->particlecache_particles)); + rtlight->particlecache_particles = (rtlight_particle_t *)Mem_Alloc(r_main_mempool, rtlight->particlecache_maxparticles * sizeof(*rtlight->particlecache_particles)); shootparticles = n * 16; } -- 2.39.2