From 20d49ae924374c7278943636e3dbb655138b5edc Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 3 Dec 2010 21:39:51 +0000 Subject: [PATCH] allow rtdlight off, rtworld on git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10647 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2