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:
parent
a7b833f319
commit
1626d7a51a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue