From d257850bd1815aae4d985fb0e24f8f10851c42da Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Fri, 15 Oct 2021 00:27:06 +0200 Subject: [PATCH] platforms/drm: set draw buffer for gbm --- src/plugins/platforms/drm/egl_gbm_backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/drm/egl_gbm_backend.cpp b/src/plugins/platforms/drm/egl_gbm_backend.cpp index 2bbbb034b5..ab332c6a9b 100644 --- a/src/plugins/platforms/drm/egl_gbm_backend.cpp +++ b/src/plugins/platforms/drm/egl_gbm_backend.cpp @@ -365,6 +365,7 @@ bool EglGbmBackend::makeContextCurrent(const Output::RenderData &render) const qCCritical(KWIN_DRM) << "eglMakeCurrent failed:" << getEglErrorString(); return false; } + glDrawBuffer(GL_BACK); return true; }