From: havoc Date: Thu, 8 Oct 2009 13:38:07 +0000 (+0000) Subject: check gl_support_fragment_shader before setting up shadowmode X-Git-Tag: xonotic-v0.1.0preview~1311 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d6c7ac5136a0f014e04e615a564e0bf156dd3c58;p=xonotic%2Fdarkplaces.git check gl_support_fragment_shader before setting up shadowmode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9323 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 85ec3fec..aed531d5 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -368,7 +368,7 @@ void R_Shadow_SetShadowMode(void) r_shadow_shadowmapsampler = false; r_shadow_shadowmappcf = 0; r_shadow_shadowmode = 0; - if(r_shadow_shadowmapping.integer) + if(r_shadow_shadowmapping.integer && gl_support_fragment_shader) { if(r_shadow_shadowmapfilterquality < 0) {