D25365: [libkwineffects] Restore GL_DRAW_FRAMEBUFFER binding in GLTexture::clear
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag created this revision. zzag added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. zzag requested review of this revision. REVISION 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. REPOSITORY R108 KWin BRANCH restore-draw-framebuffer-binding REVISION DETAIL https://phabricator.kde.org/D25365 AFFECTED FILES libkwineffects/kwingltexture.cpp libkwineffects/kwingltexture.h To: zzag, #kwin Cc: kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart