all repos — mgba @ d96b93037484085cd0804b3e2ec9264bdd5adf72

mGBA Game Boy Advance Emulator

Qt: Try GLES 3.0 if using GLES
Vicki Pfau vi@endrift.com
Sun, 20 Oct 2019 00:09:12 -0700
commit

d96b93037484085cd0804b3e2ec9264bdd5adf72

parent

b137e459e0cb6d467721874c0aa8ffd7e7aef288

1 files changed, 5 insertions(+), 1 deletions(-)

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

@@ -26,7 +26,11 @@

switch (s_driver) { #if defined(BUILD_GL) || defined(BUILD_GLES2) || defined(USE_EPOXY) case Driver::OPENGL: - format.setVersion(3, 2); + if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES) { + format.setVersion(3, 0); + } else { + format.setVersion(3, 2); + } format.setProfile(QSurfaceFormat::CoreProfile); return new DisplayGL(format, parent); #endif