]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix two compile errors on D3D9
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Feb 2011 08:36:56 +0000 (08:36 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Feb 2011 08:36:56 +0000 (08:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10860 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 73dc15373c9c0aa8e33f993d9841084e055fdf83..0030b2f80ee3603d0c11fc67dbc383a63e51867e 100644 (file)
@@ -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;
        }