diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-05-07 09:05:10 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-05-07 09:08:08 (GMT) |
commit | e5233c4fd9a6f80ec5251cb847d08d7a088301a2 (patch) | |
tree | 2d8bda638a74286618df4cd7b3c1ea225805831c /src/gui/painting | |
parent | f380ab3106cb6d39087adacd77f618184f6f90c3 (diff) | |
download | Qt-e5233c4fd9a6f80ec5251cb847d08d7a088301a2.zip Qt-e5233c4fd9a6f80ec5251cb847d08d7a088301a2.tar.gz Qt-e5233c4fd9a6f80ec5251cb847d08d7a088301a2.tar.bz2 |
Fix textdrawing under GL on N900.
The driver in the N900 doesn't support glCopyTexSubImage
or glReadPixels for FBO's that have a GL_ALPHA or POT
color attachment. The ifdef'ed code in resize() was
a previous attempt to make this work which didn't.
We could have changed the texture to be GL_RGBA and changed
the texture size to be NPOT, but that would have wasted
precious GPU memory and would have been slower, so we
waste a bit of system memory instead, by having a QImage
copy along with the texture.
Reviewed-by: Eskil
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qtextureglyphcache_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtextureglyphcache_p.h b/src/gui/painting/qtextureglyphcache_p.h index 390fe51..a818978 100644 --- a/src/gui/painting/qtextureglyphcache_p.h +++ b/src/gui/painting/qtextureglyphcache_p.h @@ -125,7 +125,7 @@ protected: }; -class QImageTextureGlyphCache : public QTextureGlyphCache +class Q_GUI_EXPORT QImageTextureGlyphCache : public QTextureGlyphCache { public: QImageTextureGlyphCache(QFontEngineGlyphCache::Type type, const QTransform &matrix) |