This commit is contained in:
Brad Parker 2019-08-07 14:46:47 -04:00
parent b97069aa6d
commit db53e54b15
2 changed files with 6 additions and 16 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}
}