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

View File

@ -1265,8 +1265,8 @@ bool ScreenPanelGL::createContext()
{ {
std::optional<WindowInfo> windowInfo = getWindowInfo(); std::optional<WindowInfo> windowInfo = getWindowInfo();
std::array<GL::Context::Version, 2> versionsToTry = { 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()) if (windowInfo.has_value())
{ {
glContext = GL::Context::Create(*getWindowInfo(), versionsToTry); glContext = GL::Context::Create(*getWindowInfo(), versionsToTry);