From: divverent Date: Fri, 3 Dec 2010 21:39:51 +0000 (+0000) Subject: allow rtdlight off, rtworld on X-Git-Tag: xonotic-v0.1.0preview~27 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cd4804cec4feb9908ee83131d8fc59319310dfc5;p=xonotic%2Fdarkplaces.git allow rtdlight off, rtworld on git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10647 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=20d49ae924374c7278943636e3dbb655138b5edc --- diff --git a/gl_rmain.c b/gl_rmain.c index 6156c5c5..ac4edaab 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -9473,7 +9473,7 @@ void R_UpdateVariables(void) r_refdef.scene.rtworld = r_shadow_realtime_world.integer != 0; r_refdef.scene.rtworldshadows = r_shadow_realtime_world_shadows.integer && vid.stencil; - r_refdef.scene.rtdlight = (r_shadow_realtime_world.integer || r_shadow_realtime_dlight.integer) && !gl_flashblend.integer && r_dynamic.integer; + r_refdef.scene.rtdlight = r_shadow_realtime_dlight.integer != 0 && !gl_flashblend.integer && r_dynamic.integer; r_refdef.scene.rtdlightshadows = r_refdef.scene.rtdlight && r_shadow_realtime_dlight_shadows.integer && vid.stencil; r_refdef.lightmapintensity = r_refdef.scene.rtworld ? r_shadow_realtime_world_lightmaps.value : 1; if (FAKELIGHT_ENABLED)