From 40ef8ad26809dae58974bd683a5dbb190dbde496 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 15 Oct 2005 15:21:02 +0000 Subject: [PATCH] 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 --- r_shadow.c | 3 +++ 1 file changed, 3 insertions(+) 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"; } -- 2.39.2