mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 08:43:49 +00:00
Skip #ifdef block for extensions detected purely from extension string.
This commit is contained in:
parent
c363cdb7c0
commit
0fcb9a3061
@ -42,11 +42,14 @@ if (@ARGV)
|
|||||||
|
|
||||||
#my $pextvar = prefix_varname($extvar);
|
#my $pextvar = prefix_varname($extvar);
|
||||||
|
|
||||||
print "#ifdef $extname\n";
|
if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions)
|
||||||
|
{
|
||||||
|
print "#ifdef $extname\n";
|
||||||
|
}
|
||||||
|
|
||||||
if (length($extstring) && $extstring !~ /^GL_/)
|
if (length($extstring) && $extstring !~ /^GL_/)
|
||||||
{
|
{
|
||||||
print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n";
|
print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keys %$functions)
|
if (keys %$functions)
|
||||||
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "#endif /* $extname */\n";
|
|
||||||
|
if (length($extstring) && $extstring !~ /^GL_/ || keys %$functions)
|
||||||
|
{
|
||||||
|
print "#endif /* $extname */\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user