]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't try to compile GL_NV_half_float shaders if the extension is missing
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Oct 2005 15:21:02 +0000 (15:21 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Oct 2005 15:21:02 +0000 (15:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5738 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 1946a32a44ebea4d3c08148bc40c31bb40a06b80..9948cdb2600b3e9d121e655ab0452c212e30ba11 100644 (file)
@@ -501,6 +501,9 @@ void r_shadow_start(void)
                        }
                        if (i & SHADERPERMUTATION_GEFORCEFX)
                        {
+                               // if the extension does not exist, don't try to compile it
+                               if (!gl_support_halffloat)
+                                       continue;
                                vertstrings_list[vertstrings_count++] = "#define GEFORCEFX\n";
                                fragstrings_list[fragstrings_count++] = "#define GEFORCEFX\n";
                        }