kwinglutils: Restore the default FB when the last FBO is unbound

Fixes GL warnings in GbmSurface::makeContextCurrent() when using
screencasting.
This commit is contained in:
Asahi Lina 2022-12-21 00:53:29 +09:00 committed by Aleix Pol Gonzalez
parent a508149882
commit d8da7a4eaa

View file

@ -983,6 +983,8 @@ GLFramebuffer *GLFramebuffer::popFramebuffer()
GLFramebuffer *ret = s_fbos.pop();
if (!s_fbos.isEmpty()) {
s_fbos.top()->bind();
} else {
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
return ret;