From 628edd3c0b75e5a36809da4f8905d98af513a7c1 Mon Sep 17 00:00:00 2001 From: nigels Date: Wed, 10 Mar 2010 15:37:02 +0000 Subject: [PATCH] Only check OpenGL extension string if there is a non-empty string to check for. GL_VERSION_* are detected from the version info. git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@589 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/bin/make_list.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/auto/bin/make_list.pl b/auto/bin/make_list.pl index 3bf4359..ceaa479 100755 --- a/auto/bin/make_list.pl +++ b/auto/bin/make_list.pl @@ -43,7 +43,12 @@ if (@ARGV) #my $pextvar = prefix_varname($extvar); print "#ifdef $extname\n"; - print " CONST_CAST(" . $extvar . ") = " . $extpre . "GetExtension(\"$extname\");\n"; + + if (length($extstring)) + { + print " CONST_CAST(" . $extvar . ") = " . $extpre . "GetExtension(\"$extstring\");\n"; + } + if (keys %$functions) { if ($extname =~ /WGL_.*/)