mirror of
https://github.com/nigels-com/glew.git
synced 2025-03-30 13:32:05 +00:00
added GL 1.5 branch is version test
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@194 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
a65f4fd25f
commit
ee594df90a
@ -57,13 +57,20 @@ static GLuint _glewInit ()
|
|||||||
/* query opengl version */
|
/* query opengl version */
|
||||||
s = glGetString(GL_VERSION);
|
s = glGetString(GL_VERSION);
|
||||||
if (!s) return GLEW_ERROR_NO_GL_VERSION;
|
if (!s) return GLEW_ERROR_NO_GL_VERSION;
|
||||||
i=_glewStrCLen(s, '.')+1;
|
i = _glewStrCLen(s, '.')+1;
|
||||||
if (s+i == NULL || s[i] < '1')
|
if (s+i == NULL || s[i] < '1')
|
||||||
{
|
{
|
||||||
return GLEW_ERROR_GL_VERSION_10_ONLY;
|
return GLEW_ERROR_GL_VERSION_10_ONLY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (s[3] >= '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;
|
||||||
|
}
|
||||||
if (s[2] == '4')
|
if (s[2] == '4')
|
||||||
{
|
{
|
||||||
GLEW_VERSION_1_1 = GL_TRUE;
|
GLEW_VERSION_1_1 = GL_TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user