mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-24 14:55:07 +00:00
Skip #ifdef block for extensions detected purely from extension string.
This commit is contained in:
parent
9a948f785b
commit
434d8a0ce4
@ -42,7 +42,10 @@ if (@ARGV)
|
|||||||
|
|
||||||
#my $pextvar = prefix_varname($extvar);
|
#my $pextvar = prefix_varname($extvar);
|
||||||
|
|
||||||
|
if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions)
|
||||||
|
{
|
||||||
print "#ifdef $extname\n";
|
print "#ifdef $extname\n";
|
||||||
|
}
|
||||||
|
|
||||||
if (length($extstring) && $extstring !~ /^GL_/)
|
if (length($extstring) && $extstring !~ /^GL_/)
|
||||||
{
|
{
|
||||||
@ -60,7 +63,11 @@ if (@ARGV)
|
|||||||
print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n";
|
print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions)
|
||||||
|
{
|
||||||
print "#endif /* $extname */\n";
|
print "#endif /* $extname */\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user