mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
GLContext: Try GL versions 3.2-4.6 when getting a context
GLX previously was only creating a 4.0 context.
This commit is contained in:
@ -371,12 +371,7 @@ HGLRC GLContextWGL::CreateCoreContext(HDC dc, HGLRC share_context)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// List of versions to attempt context creation for. (4.5-3.2, geometry shaders is a minimum
|
||||
// requirement since we're using core profile)
|
||||
static constexpr std::array<std::pair<int, int>, 8> try_versions = {
|
||||
{{4, 5}, {4, 4}, {4, 3}, {4, 2}, {4, 1}, {4, 0}, {3, 3}, {3, 2}}};
|
||||
|
||||
for (const auto& version : try_versions)
|
||||
for (const auto& version : s_desktop_opengl_versions)
|
||||
{
|
||||
// Construct list of attributes. Prefer a forward-compatible, core context.
|
||||
std::array<int, 5 * 2> attribs = {WGL_CONTEXT_PROFILE_MASK_ARB,
|
||||
|
Reference in New Issue
Block a user