diff --git a/src/plugins/platforms/drm/egl_gbm_backend.cpp b/src/plugins/platforms/drm/egl_gbm_backend.cpp index 776967c9a8..0ab9b6d592 100644 --- a/src/plugins/platforms/drm/egl_gbm_backend.cpp +++ b/src/plugins/platforms/drm/egl_gbm_backend.cpp @@ -359,7 +359,9 @@ bool EglGbmBackend::makeContextCurrent(const Output::RenderData &render) const qCCritical(KWIN_DRM) << "eglMakeCurrent failed:" << getEglErrorString(); return false; } - glDrawBuffer(GL_BACK); + if (!GLPlatform::instance()->isGLES()) { + glDrawBuffer(GL_BACK); + } return true; }