Add a missing pointer initializer.
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>
Tue, 22 May 2012 11:23:26 +0000 (13:23 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 12:18:34 +0000 (14:18 +0200)
This causes a crash when using QGraphicsWebView with a GL viewport.

Change-Id: I64bdcfe8cd4d8ed7794188c1df08f9028479f8d4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp

index 8321b8d..ed613ab 100644 (file)
@@ -50,6 +50,7 @@ QBasicAtomicInt qgltextureglyphcache_serial_number = Q_BASIC_ATOMIC_INITIALIZER(
 
 QGLTextureGlyphCache::QGLTextureGlyphCache(QFontEngineGlyphCache::Type type, const QTransform &matrix)
     : QImageTextureGlyphCache(type, matrix)
+    , m_textureResource(0)
     , pex(0)
     , m_blitProgram(0)
     , m_filterMode(Nearest)