From 832342cc0fed97b8429d3de3da1cdceda5e0edab Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Fri, 12 Oct 2018 12:00:43 +0100 Subject: [PATCH] Move variable definition to conform to glfw C standard. --- src/wgl_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wgl_context.c b/src/wgl_context.c index a07a61af8..900a0cd05 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -143,6 +143,7 @@ static int choosePixelFormat(_GLFWwindow* window, _GLFWfbconfig* usableConfigs; const _GLFWfbconfig* closest; int i, pixelFormat, nativeCount, usableCount; + int pixelFormatAttribs[GLFW_PFA_COUNT]; if (_glfw.wgl.ARB_pixel_format) { @@ -169,7 +170,6 @@ static int choosePixelFormat(_GLFWwindow* window, if (_glfw.wgl.ARB_pixel_format) { // Get pixel format attributes through "modern" extension - int pixelFormatAttribs[GLFW_PFA_COUNT]; getPixelFormatAttribs(window, n, pixelFormatAttribs ); if (!pixelFormatAttribs[GLFW_PFA_WGL_SUPPORT_OPENGL_ARB] ||