]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
check gl_support_fragment_shader before setting up shadowmode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Oct 2009 13:38:07 +0000 (13:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 Oct 2009 13:38:07 +0000 (13:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9323 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 85ec3fec910937d99d02e52cd415af6c5e72ba74..aed531d5181b60dd7c40491de3b56e3ee4bddc29 100644 (file)
@@ -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)
                {