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:
parent
a508149882
commit
d8da7a4eaa
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue