diff --git a/plugins/platforms/drm/egl_gbm_backend.cpp b/plugins/platforms/drm/egl_gbm_backend.cpp index 68c59af91b..311b08fa25 100644 --- a/plugins/platforms/drm/egl_gbm_backend.cpp +++ b/plugins/platforms/drm/egl_gbm_backend.cpp @@ -343,12 +343,7 @@ bool EglGbmBackend::makeContextCurrent(const Output &output) const return false; } if (eglMakeCurrent(eglDisplay(), surface, surface, context()) == EGL_FALSE) { - qCCritical(KWIN_DRM) << "Make Context Current failed"; - return false; - } - EGLint error = eglGetError(); - if (error != EGL_SUCCESS) { - qCWarning(KWIN_DRM) << "Error occurred while creating context " << error; + qCCritical(KWIN_DRM) << "Make Context Current failed" << eglGetError(); return false; } return true;