From ef4156e01e0b0a2617957cf5dfc5f02105aad448 Mon Sep 17 00:00:00 2001 From: nigels Date: Fri, 6 Aug 2010 14:31:38 +0000 Subject: [PATCH] GLEW_VERSION_4_1 and related version detection, no API yet git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@614 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/core/GL_VERSION_4_1 | 3 +++ auto/src/glew_init_gl.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 auto/core/GL_VERSION_4_1 diff --git a/auto/core/GL_VERSION_4_1 b/auto/core/GL_VERSION_4_1 new file mode 100644 index 0000000..4c51e00 --- /dev/null +++ b/auto/core/GL_VERSION_4_1 @@ -0,0 +1,3 @@ +GL_VERSION_4_1 +http://www.opengl.org/registry/doc/glspec41.core.20100725.pdf + diff --git a/auto/src/glew_init_gl.c b/auto/src/glew_init_gl.c index ff7d5a8..99bc27d 100644 --- a/auto/src/glew_init_gl.c +++ b/auto/src/glew_init_gl.c @@ -54,7 +54,8 @@ GLenum glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST) } else { - CONST_CAST(GLEW_VERSION_4_0) = ( major > 4 ) || ( major == 4 ) ? GL_TRUE : GL_FALSE; + CONST_CAST(GLEW_VERSION_4_1) = ( major > 4 ) || ( major == 4 && minor >= 1 ) ? GL_TRUE : GL_FALSE; + CONST_CAST(GLEW_VERSION_4_0) = GLEW_VERSION_4_1 == GL_TRUE || ( major == 4 ) ? GL_TRUE : GL_FALSE; CONST_CAST(GLEW_VERSION_3_3) = GLEW_VERSION_4_0 == GL_TRUE || ( major == 3 && minor >= 3 ) ? GL_TRUE : GL_FALSE; CONST_CAST(GLEW_VERSION_3_2) = GLEW_VERSION_3_3 == GL_TRUE || ( major == 3 && minor >= 2 ) ? GL_TRUE : GL_FALSE; CONST_CAST(GLEW_VERSION_3_1) = GLEW_VERSION_3_2 == GL_TRUE || ( major == 3 && minor >= 1 ) ? GL_TRUE : GL_FALSE;