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
This commit is contained in:
nigels 2010-03-10 15:37:02 +00:00
parent 839c21e270
commit 628edd3c0b

View File

@ -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_.*/)