try creating an OGL 4.3 context first

(https://i.kym-cdn.com/photos/images/original/001/264/842/220.png)
This commit is contained in:
RSDuck 2022-10-13 01:10:08 +02:00
parent f6654166e0
commit 5c6bf5fcf7
1 changed files with 2 additions and 2 deletions

View File

@ -1265,8 +1265,8 @@ bool ScreenPanelGL::createContext()
{
std::optional<WindowInfo> windowInfo = getWindowInfo();
std::array<GL::Context::Version, 2> versionsToTry = {
GL::Context::Version{GL::Context::Profile::Core, 3, 2},
GL::Context::Version{GL::Context::Profile::Core, 4, 3}};
GL::Context::Version{GL::Context::Profile::Core, 4, 3},
GL::Context::Version{GL::Context::Profile::Core, 3, 2}};
if (windowInfo.has_value())
{
glContext = GL::Context::Create(*getWindowInfo(), versionsToTry);