diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-06-12 10:02:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-12 13:23:51 +0200 |
commit | d75f6ed96dfe1df33a6518b93ed387bf39378562 (patch) | |
tree | cb891bcc67a79620af4554beade8887a4647aeb8 /src/quick/scenegraph/util/qsgpainternode.cpp | |
parent | c6e05767828fcdc04e5191090fa54eb48f1a1ad4 (diff) |
Initialize QSGPaintedNode with an empty size.
Failing to do so would cause it to not update its size when set to 1x1
which in turn would cause it to never update its texture, causing crashes
later during rendering.
Task-number: QTBUG-39555
Change-Id: I099d9ef2d6968ece21f7c03819abfd6685bec430
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'src/quick/scenegraph/util/qsgpainternode.cpp')
-rw-r--r-- | src/quick/scenegraph/util/qsgpainternode.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/scenegraph/util/qsgpainternode.cpp b/src/quick/scenegraph/util/qsgpainternode.cpp index 5a397e9b83..8ccb9d2ffb 100644 --- a/src/quick/scenegraph/util/qsgpainternode.cpp +++ b/src/quick/scenegraph/util/qsgpainternode.cpp @@ -96,7 +96,6 @@ QSGPainterNode::QSGPainterNode(QQuickPaintedItem *item) , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4) , m_texture(0) , m_gl_device(0) - , m_size(1, 1) , m_dirtyContents(false) , m_opaquePainting(false) , m_linear_filtering(false) |