summaryrefslogtreecommitdiffstats
path: root/src/render/backend/trianglesvisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/trianglesvisitor.cpp')
-rw-r--r--src/render/backend/trianglesvisitor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/backend/trianglesvisitor.cpp b/src/render/backend/trianglesvisitor.cpp
index c2cff33d3..50a9a4046 100644
--- a/src/render/backend/trianglesvisitor.cpp
+++ b/src/render/backend/trianglesvisitor.cpp
@@ -465,14 +465,14 @@ void TrianglesVisitor::apply(const GeometryRenderer *renderer, const Qt3DCore::Q
{
m_nodeId = id;
if (renderer && renderer->instanceCount() == 1 && isTriangleBased(renderer->primitiveType())) {
- Attribute *positionAttribute = Q_NULLPTR;
- Attribute *indexAttribute = Q_NULLPTR;
- Buffer *positionBuffer = Q_NULLPTR;
- Buffer *indexBuffer = Q_NULLPTR;
+ Attribute *positionAttribute = nullptr;
+ Attribute *indexAttribute = nullptr;
+ Buffer *positionBuffer = nullptr;
+ Buffer *indexBuffer = nullptr;
Geometry *geom = m_manager->lookupResource<Geometry, GeometryManager>(renderer->geometryId());
if (geom) {
- Qt3DRender::Render::Attribute *attribute = Q_NULLPTR;
+ Qt3DRender::Render::Attribute *attribute = nullptr;
const auto attrIds = geom->attributes();
for (const Qt3DCore::QNodeId attrId : attrIds) {
attribute = m_manager->lookupResource<Attribute, AttributeManager>(attrId);