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
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ if (@ARGV)
#my $pextvar = prefix_varname($extvar); #my $pextvar = prefix_varname($extvar);
print "#ifdef $extname\n"; 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 (keys %$functions)
{ {
if ($extname =~ /WGL_.*/) if ($extname =~ /WGL_.*/)