diff --git a/auto/src/glew_init_gl.c b/auto/src/glew_init_gl.c index cfc9a45..baf61f9 100644 --- a/auto/src/glew_init_gl.c +++ b/auto/src/glew_init_gl.c @@ -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; } } }