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:
Stenzek
2018-10-14 23:32:50 +10:00
parent c95802afeb
commit 2c6d96433c
5 changed files with 31 additions and 38 deletions

View File

@ -4,8 +4,10 @@
#pragma once
#include <array>
#include <memory>
#include <string>
#include <utility>
#include "Common/CommonTypes.h"
#include "Common/WindowSystemInfo.h"
@ -58,4 +60,8 @@ protected:
u32 m_backbuffer_width = 0;
u32 m_backbuffer_height = 0;
bool m_is_shared = false;
// A list of desktop OpenGL versions to attempt to create a context for.
// (4.6-3.2, geometry shaders is a minimum requirement since we're using core profile).
static const std::array<std::pair<int, int>, 9> s_desktop_opengl_versions;
};