diff options
author | Marcus Comstedt <marcus@mc.pp.se> | 2022-07-24 23:15:42 +0200 |
---|---|---|
committer | Marcus Comstedt <marcus@mc.pp.se> | 2022-08-04 21:50:12 +0200 |
commit | d2fcccd3f1c5e3729c280a6f0a3e12dc9835477b (patch) | |
tree | 55ba648003c1d38ee4939b1c97dd4d700b09e4c9 /src/gui/painting/qblendfunctions_p.h | |
parent | dcaa05f6977b71903ab36530fdad913741683f76 (diff) |
Fix composition of render-to-texture widgets on big endian
Converting from QImage::Format_ARGB32 to QRhiTexture::RGBA8 requires
texture swizzling also on big endian. But unlike on little endian it
is not a red/blue swap that is needed, but a rather rotation of the
alpha channel from the first component to the last.
Add a new swizzling mode to the backingstorecompose fragment shader,
and rename the uniform to reflect that it no longer covers only
red/blue swapping.
Pick-to: 6.4
Change-Id: I001d275abdc88faaadea16e396ebe032b34e83f0
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/painting/qblendfunctions_p.h')
0 files changed, 0 insertions, 0 deletions