From cf7819df8d621b826a4328ba791fdc9720dfd415 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2011 13:58:02 +0100 Subject: [PATCH] Comment tweaks. --- src/opengl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opengl.c b/src/opengl.c index 68aad2a1..1439e328 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -206,7 +206,6 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev) const GLubyte* ptr; const char* glesPrefix = "OpenGL ES "; - // Get OpenGL version string version = glGetString(GL_VERSION); if (!version) return; @@ -219,7 +218,8 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev) version += strlen(glesPrefix); } - // Parse string + // Parse version from string + ptr = version; for (_major = 0; *ptr >= '0' && *ptr <= '9'; ptr++) _major = 10 * _major + (*ptr - '0'); @@ -238,7 +238,7 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev) } } - // Return parsed values + // Store result *major = _major; *minor = _minor; *rev = _rev;