diff --git a/src/platformsupport/scenes/opengl/openglbackend.cpp b/src/platformsupport/scenes/opengl/openglbackend.cpp index 03c9902686..d07a50c1df 100644 --- a/src/platformsupport/scenes/opengl/openglbackend.cpp +++ b/src/platformsupport/scenes/opengl/openglbackend.cpp @@ -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; }