diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-05-02 14:58:12 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-05-28 17:48:03 +0200 |
commit | c143161608ded130919006f151bf92c44a0991d0 (patch) | |
tree | fd4ab337193f517bf357d81b6e908159dd433ea8 /tests/manual/rhi/rhi.pro | |
parent | 29fa59d24417d017205bdb00d215e372154ce573 (diff) |
Avoid uninitialized texture data in image glyph cache
The problem becomes visible with styled native text materials in Quick,
but only in certain cases: the regions not used by glyphs in the QImage
are undefined (if they are 0 there's no problem) - but the whole
code path is only used when the fbo readback workaround is enabled.
When these conditions met, the styled text materials may sample locations
with uninitialized data in the texture, showing small artifacts around
the glyphs when shifting is involved in the styling.
The non-image based GL glyph cache handles this by an explicit upload
with all 0's when creating the texture - the QImage code path should do
the same then.
Change-Id: I818ee19f87c6a147e42cd3ead39645da4d0fef11
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/manual/rhi/rhi.pro')
0 files changed, 0 insertions, 0 deletions