Commit c4c03e25 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

platforms/drm: only use glDrawBuffer with desktop GL

That function is not available with GLES, and calling it is only necessary
for NVidia.


(cherry picked from commit 1626d7a5)
parent 2a08b3ce
...@@ -359,7 +359,9 @@ bool EglGbmBackend::makeContextCurrent(const Output::RenderData &render) const ...@@ -359,7 +359,9 @@ bool EglGbmBackend::makeContextCurrent(const Output::RenderData &render) const
qCCritical(KWIN_DRM) << "eglMakeCurrent failed:" << getEglErrorString(); qCCritical(KWIN_DRM) << "eglMakeCurrent failed:" << getEglErrorString();
return false; return false;
} }
glDrawBuffer(GL_BACK); if (!GLPlatform::instance()->isGLES()) {
glDrawBuffer(GL_BACK);
}
return true; return true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment