mirror of
https://github.com/nigels-com/glew.git
synced 2024-12-01 01:57:08 +00:00
[CoreSupport] Linux/GLX touch-ups for GL 3.0 + extension detection, GLX.
This commit is contained in:
parent
bd64010b4d
commit
6bbb8d34df
@ -42,10 +42,15 @@ if (@ARGV)
|
||||
|
||||
#my $pextvar = prefix_varname($extvar);
|
||||
|
||||
if (keys %$functions)
|
||||
{
|
||||
print "#ifdef $extname\n";
|
||||
|
||||
if (length($extstring) && $extstring !~ /^GL_/)
|
||||
{
|
||||
print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n";
|
||||
}
|
||||
|
||||
if (keys %$functions)
|
||||
{
|
||||
if ($extname =~ /WGL_.*/)
|
||||
{
|
||||
print " if (glewExperimental || " . $extvar . "|| crippled) " . $extvar . "= !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n";
|
||||
@ -54,9 +59,8 @@ if (@ARGV)
|
||||
{
|
||||
print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n";
|
||||
}
|
||||
|
||||
}
|
||||
print "#endif /* $extname */\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
|
||||
|
||||
/* glGetStringi is OpenGL 3.0 */
|
||||
getStringi = (PFNGLGETSTRINGIPROC) glewGetProcAddress((const GLubyte*)"glGetStringi");
|
||||
if (glGetStringi)
|
||||
if (getStringi)
|
||||
for (i = 0; i<n; ++i)
|
||||
{
|
||||
ext = (const char *) getStringi(GL_EXTENSIONS, i);
|
||||
|
Loading…
Reference in New Issue
Block a user