mirror of https://github.com/mgba-emu/mgba.git
Qt: Attempt to fix display issues
This commit is contained in:
parent
3f142cb96a
commit
c597d6dcfa
|
@ -29,7 +29,6 @@ Display* Display::create(QWidget* parent) {
|
|||
switch (s_driver) {
|
||||
#if defined(BUILD_GL) || defined(BUILD_GLES2) || defined(USE_EPOXY)
|
||||
case Driver::OPENGL:
|
||||
format.setVersion(3, 0);
|
||||
return new DisplayGL(format, parent);
|
||||
#endif
|
||||
#ifdef BUILD_GL
|
||||
|
@ -43,7 +42,6 @@ Display* Display::create(QWidget* parent) {
|
|||
|
||||
default:
|
||||
#if defined(BUILD_GL) || defined(BUILD_GLES2) || defined(USE_EPOXY)
|
||||
format.setVersion(3, 0);
|
||||
return new DisplayGL(format, parent);
|
||||
#else
|
||||
return new DisplayQt(parent);
|
||||
|
|
|
@ -31,7 +31,7 @@ DisplayGL::DisplayGL(const QGLFormat& format, QWidget* parent)
|
|||
, m_drawThread(nullptr)
|
||||
, m_context(nullptr)
|
||||
{
|
||||
m_painter = new PainterGL(format.majorVersion(), m_gl);
|
||||
m_painter = new PainterGL(format.majorVersion() < 2 ? 1 : m_gl->format().majorVersion(), m_gl);
|
||||
m_gl->setMouseTracking(true);
|
||||
m_gl->setAttribute(Qt::WA_TransparentForMouseEvents); // This doesn't seem to work?
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue