summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qdepthmask.cpp
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@digia.com>2014-08-15 13:39:14 +0300
committerLouai Al-Khanji <louai.al-khanji@digia.com>2014-08-15 14:57:35 +0200
commit35e00094cefd43200df96ba09f548486a86bdef4 (patch)
tree69d677aff4995fab76cb16e3836ad909f462e24d /src/render/frontend/qdepthmask.cpp
parent37b1b13ef5f7f0b8c8ab712d57d681ef5f0c45d5 (diff)
Avoid naming classes DrawState
Since winuser.h contains a DrawState #define, this tends to wreck havoc on Windows. This patch respectively renames QDrawState, Qt3D::Render::DrawState and Qt3D::Render::DrawStateSet to QRenderState, Qt3D::Render::RenderState and Qt3D::Render::RenderStateSet. While this is more invasive than just undefining DrawState, it should be more foolproof too. Change-Id: I9fa86e5bf1fe41fb4839bd146822cc43e26019e6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qdepthmask.cpp')
-rw-r--r--src/render/frontend/qdepthmask.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/render/frontend/qdepthmask.cpp b/src/render/frontend/qdepthmask.cpp
index d003eb429..12cc12c88 100644
--- a/src/render/frontend/qdepthmask.cpp
+++ b/src/render/frontend/qdepthmask.cpp
@@ -1,6 +1,7 @@
/****************************************************************************
**
** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt3D module of the Qt Toolkit.
@@ -61,13 +62,13 @@ public:
};
QDepthMask::QDepthMask(QNode *parent)
- : QDrawState(*new QDepthMaskPrivate(this), parent)
+ : QRenderState(*new QDepthMaskPrivate(this), parent)
{
}
void QDepthMask::copy(const QNode *ref)
{
- QDrawState::copy(ref);
+ QRenderState::copy(ref);
Q_D(QDepthMask);
const QDepthMask *refState = qobject_cast<const QDepthMask *>(ref);
if (refState != Q_NULLPTR) {