1 | // Copyright (C) 2020 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | |
5 | #include <QtQuick3DRuntimeRender/private/qssgrenderitem2d_p.h> |
6 | #include <QtQuick3DRuntimeRender/private/qssgrenderbuffermanager_p.h> |
7 | #include <QtQuick/QSGTexture> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | QSSGRenderItem2D::QSSGRenderItem2D() |
12 | : QSSGRenderNode(QSSGRenderGraphObject::Type::Item2D) |
13 | { |
14 | } |
15 | |
16 | QSSGRenderItem2D::~QSSGRenderItem2D() |
17 | { |
18 | // Normally it will be deleted when m_renderer destroyed |
19 | // by QQuick3DItem2D's connection |
20 | // But if this backend node may suddenly be deleted, |
21 | // it is safe to remain this deletion here. |
22 | delete m_rp; |
23 | } |
24 | |
25 | QT_END_NAMESPACE |
26 | |