aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2011-08-29 13:08:10 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-08-29 13:09:44 +0200
commitf2ad73ceb554944beb35eb8b87bab7a5a0ee9e42 (patch)
treef7c837992df2b6722c3367915d2bc00554e53ae2 /src
parent957c8fb9946643a779e0a84eeeca2f150f221cba (diff)
Fix crash due to uninitialized QOpenGLContext.
Change-Id: Id3870f1e438742d514710ceb39808b1f93f2d25d Reviewed-on: http://codereview.qt.nokia.com/3737 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp b/src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp
index d1973d4f36..13fe62a27a 100644
--- a/src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp
+++ b/src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp
@@ -799,7 +799,8 @@ static bool fontHasNarrowOutlines(const QRawFont &f)
}
QSGDistanceFieldGlyphCacheManager::QSGDistanceFieldGlyphCacheManager(QOpenGLContext *c)
- : m_threshold_func(defaultThresholdFunc)
+ : ctx(c)
+ , m_threshold_func(defaultThresholdFunc)
, m_antialiasingSpread_func(defaultAntialiasingSpreadFunc)
, m_maxTextureSize(0)
{