summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltextureglyphcache.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <[email protected]>2011-10-06 12:50:22 +0200
committerQt by Nokia <[email protected]>2011-10-07 12:13:34 +0200
commitb26442f48520a1e04bcb259e3694b3ee3471e124 (patch)
treecb8ad697e007e1da8597cc3e6ea2f8e3daeba717 /src/gui/opengl/qopengltextureglyphcache.cpp
parentdb6db2f9d4d2c441ef33a6bccc83c8e66be467b7 (diff)
Fixed crash due to uninitialized pointer in OpenGL texture glyph cache.
Change-Id: I384f82f1549a81e19566484e12c75ce8df1f314f Reviewed-on: http://codereview.qt-project.org/6149 Reviewed-by: Qt Sanity Bot <[email protected]> Reviewed-by: Lars Knoll <[email protected]> Reviewed-by: Gunnar Sletta <[email protected]>
Diffstat (limited to 'src/gui/opengl/qopengltextureglyphcache.cpp')
-rw-r--r--src/gui/opengl/qopengltextureglyphcache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp
index ffce6f55bb7..bfeef5a6851 100644
--- a/src/gui/opengl/qopengltextureglyphcache.cpp
+++ b/src/gui/opengl/qopengltextureglyphcache.cpp
@@ -53,6 +53,7 @@ QBasicAtomicInt qopengltextureglyphcache_serial_number = Q_BASIC_ATOMIC_INITIALI
QOpenGLTextureGlyphCache::QOpenGLTextureGlyphCache(QFontEngineGlyphCache::Type type, const QTransform &matrix)
: QImageTextureGlyphCache(type, matrix)
+ , m_textureResource(0)
, pex(0)
, m_blitProgram(0)
, m_filterMode(Nearest)