From ee594df90a62f8bcd616cad18e72b31fcff9af2d Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 19 Jan 2004 21:18:33 +0000 Subject: [PATCH] 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 --- auto/src/glew_gl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/auto/src/glew_gl.c b/auto/src/glew_gl.c index 83a9a4e..071d53e 100644 --- a/auto/src/glew_gl.c +++ b/auto/src/glew_gl.c @@ -57,13 +57,20 @@ static GLuint _glewInit () /* query opengl version */ s = glGetString(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') { return GLEW_ERROR_GL_VERSION_10_ONLY; } 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') { GLEW_VERSION_1_1 = GL_TRUE;