summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-05-07 09:05:10 (GMT)
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-05-07 09:08:08 (GMT)
commite5233c4fd9a6f80ec5251cb847d08d7a088301a2 (patch)
tree2d8bda638a74286618df4cd7b3c1ea225805831c /src/gui/painting
parentf380ab3106cb6d39087adacd77f618184f6f90c3 (diff)
downloadQt-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.h2
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)