diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2019-10-15 09:30:30 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2019-10-15 10:08:08 +0200 |
commit | 6336fa98ca7340fe65ab252cc576c3d10c9ddb76 (patch) | |
tree | 62d8ce603bb53ebc792771d236a252587d8062a4 /examples/studio3d | |
parent | 0cf8283ab85dc4149a51816a97949560dfdaa67b (diff) |
Fix loading pregenerated distance field cachev2.5.0-rc
We can't assume the stride of the internal QImage data matches the
width, since this is likely to be aligned to four bytes.
Therefore we copy one scan line at the time instead.
[ChangeLog][Text] Pregenerating distance field caches would sometimes
lead to corrupted rendering.
Fixes: QT3DS-3908
Change-Id: I3c30c6c707d6f220d852d6c067301ab4d468884c
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples/studio3d')
0 files changed, 0 insertions, 0 deletions