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
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/Display.cpp
→
src/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: