From: havoc Date: Sat, 15 Oct 2005 15:21:02 +0000 (+0000) Subject: don't try to compile GL_NV_half_float shaders if the extension is missing X-Git-Tag: xonotic-v0.1.0preview~4545 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=40ef8ad26809dae58974bd683a5dbb190dbde496;p=xonotic%2Fdarkplaces.git don't try to compile GL_NV_half_float shaders if the extension is missing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5738 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 1946a32a..9948cdb2 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -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"; }