mirror of https://github.com/mgba-emu/mgba.git
Qt: Add ig4icd32 crash to OpenGL bug database (see #2136)
This commit is contained in:
parent
71d1f122f9
commit
3415dfa1b7
|
@ -802,7 +802,7 @@ void PainterGL::performDraw() {
|
||||||
m_backend->postFrame(m_backend, m_buffer);
|
m_backend->postFrame(m_backend, m_buffer);
|
||||||
}
|
}
|
||||||
m_backend->drawFrame(m_backend);
|
m_backend->drawFrame(m_backend);
|
||||||
if (m_showOSD && m_messagePainter) {
|
if (m_showOSD && m_messagePainter && !glContextHasBug(OpenGLBug::IG4ICD_CRASH)) {
|
||||||
m_painter.begin(m_paintDev.get());
|
m_painter.begin(m_paintDev.get());
|
||||||
m_messagePainter->paint(&m_painter);
|
m_messagePainter->paint(&m_painter);
|
||||||
m_painter.end();
|
m_painter.end();
|
||||||
|
|
|
@ -31,6 +31,17 @@ bool glContextHasBug(OpenGLBug bug) {
|
||||||
case OpenGLBug::GLTHREAD_BLOCKS_SWAP:
|
case OpenGLBug::GLTHREAD_BLOCKS_SWAP:
|
||||||
return version.contains(" Mesa ");
|
return version.contains(" Mesa ");
|
||||||
|
|
||||||
|
case OpenGLBug::IG4ICD_CRASH:
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
if (vendor != "Intel") {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (renderer == "Intel Pineview Platform") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ namespace QGBA {
|
||||||
enum class OpenGLBug {
|
enum class OpenGLBug {
|
||||||
CROSS_THREAD_FLUSH, // mgba.io/i/2761
|
CROSS_THREAD_FLUSH, // mgba.io/i/2761
|
||||||
GLTHREAD_BLOCKS_SWAP, // mgba.io/i/2767
|
GLTHREAD_BLOCKS_SWAP, // mgba.io/i/2767
|
||||||
|
IG4ICD_CRASH, // mgba.io/i/2136
|
||||||
};
|
};
|
||||||
|
|
||||||
bool glContextHasBug(OpenGLBug);
|
bool glContextHasBug(OpenGLBug);
|
||||||
|
|
Loading…
Reference in New Issue