mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 13:55:07 +00:00
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:
parent
839c21e270
commit
628edd3c0b
@ -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_.*/)
|
||||
|
Loading…
Reference in New Issue
Block a user