platforms/drm: only use glDrawBuffer with desktop GL

That function is not available with GLES, and calling it is only necessary
for NVidia.
This commit is contained in:
Xaver Hugl 2021-10-27 11:45:06 +02:00
parent a7b833f319
commit 1626d7a51a

View file

@ -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;
}