mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
bug fix
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@453 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
bd8cd1f849
commit
424553d208
@ -45,61 +45,65 @@ GLenum glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
|
||||
}
|
||||
else
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
if (s[major] >= '2')
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_TRUE;
|
||||
GLEW_VERSION_1_3 = GL_TRUE;
|
||||
GLEW_VERSION_1_4 = GL_TRUE;
|
||||
GLEW_VERSION_1_5 = GL_TRUE;
|
||||
GLEW_VERSION_2_0 = GL_TRUE;
|
||||
if (s[minor] >= '1')
|
||||
{
|
||||
GLEW_VERSION_2_1 = GL_TRUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (s[minor] >= '5')
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_TRUE;
|
||||
GLEW_VERSION_1_3 = GL_TRUE;
|
||||
GLEW_VERSION_1_4 = GL_TRUE;
|
||||
GLEW_VERSION_1_5 = GL_TRUE;
|
||||
GLEW_VERSION_2_0 = GL_FALSE;
|
||||
GLEW_VERSION_2_1 = GL_FALSE;
|
||||
}
|
||||
if (s[minor] == '4')
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_TRUE;
|
||||
GLEW_VERSION_1_3 = GL_TRUE;
|
||||
GLEW_VERSION_1_4 = GL_TRUE;
|
||||
GLEW_VERSION_1_5 = GL_FALSE;
|
||||
GLEW_VERSION_2_0 = GL_FALSE;
|
||||
GLEW_VERSION_2_1 = GL_FALSE;
|
||||
}
|
||||
if (s[minor] == '3')
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_TRUE;
|
||||
GLEW_VERSION_1_3 = GL_TRUE;
|
||||
GLEW_VERSION_1_4 = GL_FALSE;
|
||||
GLEW_VERSION_1_5 = GL_FALSE;
|
||||
GLEW_VERSION_2_0 = GL_FALSE;
|
||||
GLEW_VERSION_2_1 = GL_FALSE;
|
||||
}
|
||||
if (s[minor] == '2')
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_TRUE;
|
||||
GLEW_VERSION_1_3 = GL_FALSE;
|
||||
GLEW_VERSION_1_4 = GL_FALSE;
|
||||
GLEW_VERSION_1_5 = GL_FALSE;
|
||||
GLEW_VERSION_2_0 = GL_FALSE;
|
||||
GLEW_VERSION_2_1 = GL_FALSE;
|
||||
}
|
||||
if (s[minor] < '2')
|
||||
{
|
||||
GLEW_VERSION_1_1 = GL_TRUE;
|
||||
GLEW_VERSION_1_2 = GL_FALSE;
|
||||
GLEW_VERSION_1_3 = GL_FALSE;
|
||||
GLEW_VERSION_1_4 = GL_FALSE;
|
||||
GLEW_VERSION_1_5 = GL_FALSE;
|
||||
GLEW_VERSION_2_0 = GL_FALSE;
|
||||
GLEW_VERSION_2_1 = GL_FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user