diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 26f598af06..2cd6caa2a3 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -319,7 +319,7 @@ static void create_gl_context(HWND hwnd, bool *quit) } else { - if (versions[i][0] == g_major && versions[i][1] == g_minor) + if (versions[i][0] == win32_major && versions[i][1] == win32_minor) { /* The requested version is not supported, go ahead and fail since everything else will be lower than that. */ break;