X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=r_shadow.c;fp=r_shadow.c;h=67cf27ced1aae04be8ed88ff1914e160278096d2;hb=feb22f39c2c1a481b8c7a2364767b6402d5d94a1;hp=cd1151fa52ee11082dc1677f9bdacd161caa71e9;hpb=5fd2c001d6a6927f57020d24d34cd2fcbc6c439e;p=xonotic%2Fdarkplaces.git diff --git a/r_shadow.c b/r_shadow.c index cd1151fa..67cf27ce 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -3052,7 +3052,7 @@ void R_RTLight_Compile(rtlight_t *rtlight) int numsurfaces, numleafs, numleafpvsbytes, numshadowtrispvsbytes, numlighttrispvsbytes; int lighttris, shadowtris; entity_render_t *ent = r_refdef.scene.worldentity; - dp_model_t *model = r_refdef.scene.worldmodel; + model_t *model = r_refdef.scene.worldmodel; unsigned char *data; // compile the light @@ -3409,7 +3409,7 @@ static void R_Shadow_DrawWorldLight(int numsurfaces, int *surfacelist, const uns static void R_Shadow_DrawEntityLight(entity_render_t *ent) { - dp_model_t *model = ent->model; + model_t *model = ent->model; if (!model->DrawLight) return; @@ -3580,7 +3580,7 @@ static void R_Shadow_PrepareLight(rtlight_t *rtlight) // add dynamic entities that are lit by the light for (i = 0; i < r_refdef.scene.numentities; i++) { - dp_model_t *model; + model_t *model; entity_render_t *ent = r_refdef.scene.entities[i]; vec3_t org; if (!BoxesOverlap(ent->mins, ent->maxs, rtlight->cached_cullmins, rtlight->cached_cullmaxs))