mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user