From b41cd341436258861e13d4f64bdfc1b9349df28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 23 Jan 2019 23:43:15 +0100 Subject: [PATCH] Cleanup --- src/wgl_context.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wgl_context.c b/src/wgl_context.c index 51916e57..0ffe2cfc 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -67,7 +67,7 @@ static int choosePixelFormat(_GLFWwindow* window, { _GLFWfbconfig* usableConfigs; const _GLFWfbconfig* closest; - int i, pixelFormat, nativeCount, usableCount, attribCount; + int i, pixelFormat, nativeCount, usableCount = 0, attribCount = 0; int attribs[40]; int values[sizeof(attribs) / sizeof(attribs[0])]; @@ -83,8 +83,6 @@ static int choosePixelFormat(_GLFWwindow* window, return 0; } - attribCount = 0; - addAttrib(WGL_SUPPORT_OPENGL_ARB); addAttrib(WGL_DRAW_TO_WINDOW_ARB); addAttrib(WGL_PIXEL_TYPE_ARB); @@ -131,7 +129,6 @@ static int choosePixelFormat(_GLFWwindow* window, } usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); - usableCount = 0; for (i = 0; i < nativeCount; i++) {