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
This commit is contained in:
nigels 2010-08-06 14:31:38 +00:00
parent 043de344c2
commit ef4156e01e
2 changed files with 5 additions and 1 deletions

3
auto/core/GL_VERSION_4_1 Normal file
View File

@ -0,0 +1,3 @@
GL_VERSION_4_1
http://www.opengl.org/registry/doc/glspec41.core.20100725.pdf

View File

@ -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;