diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-08-18 17:18:53 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-08-28 16:12:19 +0200 |
commit | f1cc8f684cf7a72c70dfe4d9c1ca0a03ad0030a9 (patch) | |
tree | 2a1927d20bb40db3e1a4bb488f3cf859037dd7d9 /src/quick/items/qquicktext.cpp | |
parent | 229987d91505203e5a1577651b65880e58239ac7 (diff) |
Do not incorrectly leave srcAlpha and dstAlpha set to the defaults
TargetBlend defaults to One, OneMinusSrcAlpha, One, OneMinusSrcAlpha
when it comes to srcColor, dstColor, srcAlpha, dstAlpha.
When setting a blending different than our standard premultiplied alpha,
srcAlpha and dstAlpha must be set too. Otherwise what we get is
something that is not equivalent to Qt 5's glBlendFunc() call.
Change-Id: Ied03669edae9dcf3ec4c9c5b560195511db8d00b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquicktext.cpp')
0 files changed, 0 insertions, 0 deletions