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