diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 8e9a5cf3d6..e96b31920c 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -325,15 +325,10 @@ static void create_gl_context(HWND hwnd, bool *quit) /* found a suitable version that is high enough, we can stop now */ break; } - else + else if (versions[i][0] == win32_major && versions[i][1] == win32_minor) { - if (versions[i][0] == win32_major && versions[i][1] == win32_minor) - { - /* The requested version was tried and is not supported, go ahead and fail since everything else will be lower than that. */ - break; - } - - continue; + /* The requested version was tried and is not supported, go ahead and fail since everything else will be lower than that. */ + break; } } diff --git a/gfx/drivers_context/x_ctx.c b/gfx/drivers_context/x_ctx.c index 4622b3d885..3e92686465 100644 --- a/gfx/drivers_context/x_ctx.c +++ b/gfx/drivers_context/x_ctx.c @@ -916,15 +916,10 @@ static bool gfx_ctx_x_set_video_mode(void *data, break; } - else + else if (versions[i][0] == g_major && versions[i][1] == g_minor) { - if (versions[i][0] == g_major && versions[i][1] == g_minor) - { - /* The requested version was tried and is not supported, go ahead and fail since everything else will be lower than that. */ - break; - } - - continue; + /* The requested version was tried and is not supported, go ahead and fail since everything else will be lower than that. */ + break; } } }