commit | 1bad573c108330f8527f97154c59288455712f72 | [log] [tgz] |
---|---|---|
author | Camilla Berglund <elmindreda@elmindreda.org> | Thu Aug 02 15:31:08 2012 +0200 |
committer | Camilla Berglund <elmindreda@elmindreda.org> | Thu Aug 02 15:31:08 2012 +0200 |
tree | cb1a1bdd2989ffaf429d3298f837da4c563b62e9 | |
parent | ee3304c09a1c5ffb39a7ce627d9bc0801e68c710 [diff] [blame] |
Tightened scope of some local variables.
diff --git a/src/opengl.c b/src/opengl.c index 7c324ac..812d1c5 100644 --- a/src/opengl.c +++ b/src/opengl.c
@@ -589,8 +589,6 @@ { const GLubyte* extensions; _GLFWwindow* window; - GLint count; - int i; if (!_glfwInitialized) { @@ -624,6 +622,9 @@ } else { + int i; + GLint count; + // Check if extension is in the modern OpenGL extensions string list glGetIntegerv(GL_NUM_EXTENSIONS, &count);