summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-12-09 14:15:35 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-12-09 14:15:35 (GMT)
commit0c30418556d978f730c33aa3bb066961981ccc9b (patch)
tree68a65f43d1152a4e96ae3736edae89309ca608cf /src/opengl
parent9f3cde38bffb79da82d6248a873a687d37177954 (diff)
downloadQt-0c30418556d978f730c33aa3bb066961981ccc9b.zip
Qt-0c30418556d978f730c33aa3bb066961981ccc9b.tar.gz
Qt-0c30418556d978f730c33aa3bb066961981ccc9b.tar.bz2
Fix crash when rotating cleartype text under gl engine.
Reviewed-by: Eskil
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 17af9cb..9f42217 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -1562,11 +1562,11 @@ void QGL2PaintEngineExPrivate::drawCachedGlyphs(const QPointF &p, QFontEngineGly
ti.fontEngine->getGlyphPositions(ti.glyphs, matrix, ti.flags, glyphs, positions);
QGLTextureGlyphCache *cache =
- (QGLTextureGlyphCache *) ti.fontEngine->glyphCache(ctx, QTransform());
+ (QGLTextureGlyphCache *) ti.fontEngine->glyphCache(ctx, QTransform(), glyphType);
if (!cache || cache->cacheType() != glyphType) {
cache = new QGLTextureGlyphCache(ctx, glyphType, QTransform());
- ti.fontEngine->setGlyphCache(ctx, cache);
+ ti.fontEngine->setGlyphCache(ctx, cache, glyphType);
}
cache->setPaintEnginePrivate(this);