D25904: [libkwineffects] Set original backend framebuffer for render targets

Vlad Zahorodnii noreply at phabricator.kde.org
Wed Dec 11 20:09:53 GMT 2019


zzag added a comment.


  If we need to render something into a texture, a GLRenderTarget must be pushed on a stack, e.g.
  
    GLRenderTarget::push(target);
    
    // Draw
    
    GLRenderTarget::pop();
  
  But it's worth to mention that a couple of methods don't play along very nice with this design, namely GLRenderTarget::blitFramebuffer(). It just binds the default framebuffer object to GL_READ_FRAMEBUFFER, it doesn't care whether there is a GLRenderTarget on the stack, etc. I recommend to fix these methods instead. I don't think that we need to swap the value of the default framebuffer object.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D25904

To: romangg, #kwin
Cc: zzag, 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20191211/2055b8a2/attachment-0001.html>


More information about the kwin mailing list