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

Fredrik Höglund <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
fredrik added inline comments.

INLINE COMMENTS

> kwinglutils.cpp:1091
>      if (s_renderTargets.isEmpty()) {
>          glGetIntegerv(GL_VIEWPORT, s_virtualScreenViewport);
>      }

I'd also like to see a matching setDefaultViewport(), because calls to glGet*() forces serialization of the internal driver threads.

> kwinglutils.h:552
> +     */
> +    static void setKWinFramebuffer(GLuint fb) {
> +        s_kwinFramebuffer = fb;

Could we name this setDefaultFramebuffer()?

I think the documentation is also a bit misleading, because it is not necessarily the framebuffer object currently being rendered to. It's the framebuffer at the very bottom of the stack.

REPOSITORY
  R108 KWin

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

To: romangg, #kwin
Cc: fredrik, 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.