1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-27 04:28:52 -05:00

Tightened scope of some local variables.

This commit is contained in:
Camilla Berglund 2012-08-02 15:31:08 +02:00
parent ee3304c09a
commit 1bad573c10

View File

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