D18803: [effects/screenedge] Use correct blend function

Vlad Zagorodniy <[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
  Glow textures already have the red, green, and blue channels
  premultiplied by the alpha component (because of QImage), thus we can't
  use GL_SRC_ALPHA for sfactor in glBlendFunc.
  
  BUG: 403570

TEST PLAN
  Before:
  F6592391: Screenshot_20190207_011841.png <https://phabricator.kde.org/F6592391>
  
  After:
  F6592392: Screenshot_20190207_004853.png <https://phabricator.kde.org/F6592392>

REPOSITORY
  R108 KWin

BRANCH
  screenedge-correct-blend-func

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

AFFECTED FILES
  effects/screenedge/screenedgeeffect.cpp

To: zzag, #kwin
Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, 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.