all repos — mgba @ 425baa17737ed51ee8c02715b1403f1ea8ab9391

mGBA Game Boy Advance Emulator

Qt: Don't attempt to create a GL2 context if GL2 is disabled
Vicki Pfau vi@endrift.com
Sun, 21 Mar 2021 16:06:07 -0700
commit

425baa17737ed51ee8c02715b1403f1ea8ab9391

parent

b8b494eea64493d903ccab260c4fee1715845df5

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/Display.cppsrc/platform/qt/Display.cpp

@@ -27,6 +27,7 @@

switch (s_driver) { #if defined(BUILD_GL) || defined(BUILD_GLES2) || defined(USE_EPOXY) case Driver::OPENGL: +#if defined(BUILD_GLES2) || defined(USE_EPOXY) if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES) { format.setVersion(2, 0); } else {

@@ -46,6 +47,7 @@ return nullptr;

#endif } return new DisplayGL(format, parent); +#endif #endif #ifdef BUILD_GL case Driver::OPENGL1: