From 1bad573c108330f8527f97154c59288455712f72 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 2 Aug 2012 15:31:08 +0200 Subject: [PATCH] Tightened scope of some local variables. --- src/opengl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/opengl.c b/src/opengl.c index 7c324acb..812d1c53 100644 --- a/src/opengl.c +++ b/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);