summaryrefslogtreecommitdiffstats
path: root/src/imports/multimedia/qsgvideonode_rgb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/multimedia/qsgvideonode_rgb.cpp')
-rw-r--r--src/imports/multimedia/qsgvideonode_rgb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/multimedia/qsgvideonode_rgb.cpp b/src/imports/multimedia/qsgvideonode_rgb.cpp
index 2daa98553..b0fb7dcf8 100644
--- a/src/imports/multimedia/qsgvideonode_rgb.cpp
+++ b/src/imports/multimedia/qsgvideonode_rgb.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Toolkit.
@@ -249,6 +249,7 @@ public:
QSGVideoNode_RGB::QSGVideoNode_RGB(const QVideoSurfaceFormat &format) :
m_format(format)
{
+ setFlag(QSGNode::OwnsMaterial);
m_material = new QSGVideoMaterial_RGB(format);
setMaterial(m_material);
}