openglbackend: increase severity of GPU reset messages
This commit is contained in:
parent
01bf4f12d3
commit
6211654e11
1 changed files with 6 additions and 3 deletions
|
@ -86,13 +86,13 @@ bool OpenGLBackend::checkGraphicsReset()
|
|||
|
||||
switch (status) {
|
||||
case GL_GUILTY_CONTEXT_RESET:
|
||||
qCDebug(KWIN_OPENGL) << "A graphics reset attributable to the current GL context occurred.";
|
||||
qCWarning(KWIN_OPENGL) << "A graphics reset attributable to the current GL context occurred.";
|
||||
break;
|
||||
case GL_INNOCENT_CONTEXT_RESET:
|
||||
qCDebug(KWIN_OPENGL) << "A graphics reset not attributable to the current GL context occurred.";
|
||||
qCWarning(KWIN_OPENGL) << "A graphics reset not attributable to the current GL context occurred.";
|
||||
break;
|
||||
case GL_UNKNOWN_CONTEXT_RESET:
|
||||
qCDebug(KWIN_OPENGL) << "A graphics reset of an unknown cause occurred.";
|
||||
qCWarning(KWIN_OPENGL) << "A graphics reset of an unknown cause occurred.";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -105,6 +105,9 @@ bool OpenGLBackend::checkGraphicsReset()
|
|||
while (timer.elapsed() < 10000 && KWin::glGetGraphicsResetStatus() != GL_NO_ERROR) {
|
||||
usleep(50);
|
||||
}
|
||||
if (timer.elapsed() >= 10000) {
|
||||
qCWarning(KWIN_OPENGL) << "Waiting for glGetGraphicsResetStatus to return GL_NO_ERROR timed out!";
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue