X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_rsurf.c;h=ad2b93f350a95c224415e45eb38e719fe21eaf6f;hp=8ace2fa888ea05a015c63fa51a3f91e2e97d3289;hb=ec6dd5edf7290360f59fe1d6345af69875fbea81;hpb=36d55fc7d6262055e1c0955a65a06c2c498ea52d diff --git a/gl_rsurf.c b/gl_rsurf.c index 8ace2fa8..ad2b93f3 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1314,7 +1314,7 @@ static void RSurfShader_Wall_Lightmap(const entity_render_t *ent, const texture_ } } } - else if (r_shadow_lightingmode >= 2) + else if (r_shadow_realtime_world.integer) { // opaque base lighting RSurfShader_OpaqueWall_Pass_OpaqueGlow(ent, texture, surfchain); @@ -1425,7 +1425,7 @@ void R_PrepareSurfaces(entity_render_t *ent) R_UpdateTextureInfo(ent); - if (r_dynamic.integer && r_shadow_lightingmode < 1) + if (r_dynamic.integer && !r_shadow_realtime_dlight.integer) R_MarkLights(ent); if (model->light_ambient != r_ambient.value || model->light_scalebit != r_lightmapscalebit)