소스 검색

Tightened scope of some local variables.

Camilla Berglund 13 년 전
부모
커밋
1bad573c10
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/opengl.c

+ 3 - 2
src/opengl.c

@@ -589,8 +589,6 @@ GLFWAPI int glfwExtensionSupported(const char* extension)
 {
     const GLubyte* extensions;
     _GLFWwindow* window;
-    GLint count;
-    int i;
 
     if (!_glfwInitialized)
     {
@@ -624,6 +622,9 @@ GLFWAPI int glfwExtensionSupported(const char* extension)
     }
     else
     {
+        int i;
+        GLint count;
+
         // Check if extension is in the modern OpenGL extensions string list
 
         glGetIntegerv(GL_NUM_EXTENSIONS, &count);