diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-01-04 14:35:58 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-01-11 09:47:44 (GMT) |
commit | 414b50fa6f436d04e5d709d337c04a380662bf40 (patch) | |
tree | 5d43957e7358f2cd9e5f7bc6eb618f525c528d59 /examples/README | |
parent | 9179d3f6910283758147bc62f156829f72ae0a9d (diff) | |
download | Qt-414b50fa6f436d04e5d709d337c04a380662bf40.zip Qt-414b50fa6f436d04e5d709d337c04a380662bf40.tar.gz Qt-414b50fa6f436d04e5d709d337c04a380662bf40.tar.bz2 |
Fix regression in text rendering in OpenGL2 engine
Change 532115bcaa370af827a5cbad017b272842c5aacf introduced a regression
by fixing a typo in the QT_OPENGL_ES_2 macro. This caused a broken
and untested code path to be used in the GLES2 case. Since the QImage
scanlines are 32 bit aligned, QImage::width() cannot be used when
copying the data. Rather than pass in bytesPerLine() to the GL function,
I opted to revert to the proven behavior, where the pad bytes are never
read by GL but each scanline is copied separately, to avoid further
regressions on different hardware. This also seems like the more correct
approach, as the pad bytes should ideally not be copied into the cache
texture.
Reviewed-by: Samuel
(cherry picked from commit 7a54885b1df9baf793374e3cb9fdf8be93ee7c80)
Diffstat (limited to 'examples/README')
0 files changed, 0 insertions, 0 deletions