mirror of https://github.com/mgba-emu/mgba.git
Qt: Try GLES 3.0 if using GLES
This commit is contained in:
parent
b137e459e0
commit
d96b930374
|
@ -26,7 +26,11 @@ Display* Display::create(QWidget* parent) {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue