From: havoc Date: Thu, 24 Feb 2011 08:36:56 +0000 (+0000) Subject: fix two compile errors on D3D9 X-Git-Tag: xonotic-v0.5.0~425^2~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=15c011d84e8108b9e37d30c1169d40eb9ab283e4;p=xonotic%2Fdarkplaces.git fix two compile errors on D3D9 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10860 d7cf8633-e32d-0410-b094-e92efae38249 --- 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; }