summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/shaders/backingstorecompose.vert.qsb
diff options
context:
space:
mode:
authorMarcus Comstedt <marcus@mc.pp.se>2022-07-24 23:15:42 +0200
committerMarcus Comstedt <marcus@mc.pp.se>2022-08-04 21:50:12 +0200
commitd2fcccd3f1c5e3729c280a6f0a3e12dc9835477b (patch)
tree55ba648003c1d38ee4939b1c97dd4d700b09e4c9 /src/gui/painting/shaders/backingstorecompose.vert.qsb
parentdcaa05f6977b71903ab36530fdad913741683f76 (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/shaders/backingstorecompose.vert.qsb')
-rw-r--r--src/gui/painting/shaders/backingstorecompose.vert.qsbbin1627 -> 1408 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/src/gui/painting/shaders/backingstorecompose.vert.qsb b/src/gui/painting/shaders/backingstorecompose.vert.qsb
index 1f464516fe..1aa6e661f8 100644
--- a/src/gui/painting/shaders/backingstorecompose.vert.qsb
+++ b/src/gui/painting/shaders/backingstorecompose.vert.qsb
Binary files differ