Diffusion KWin 1d362d38fd3e

[libkwineffects] Restore GL_DRAW_FRAMEBUFFER binding in GLTexture::clear

Authored by zzag on Nov 12 2019, 8:46 PM.

Description

[libkwineffects] Restore GL_DRAW_FRAMEBUFFER binding in GLTexture::clear

Summary:
If an effect renders a window into an offscreen texture, it's very important
that the window ends up in the offscreen render target rather than the default
framebuffer object. However, that might be not the case if the OpenGL
decoration renderer needs to create a texture atlas since the renderer calls
GLTexture::clear() method, which might clobber the current GL_DRAW_FRAMEBUFFER
binding.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D25365