summaryrefslogtreecommitdiffstats
path: root/src/plugins/sceneparsers
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2018-06-20 10:15:14 +0200
committerPaul Lemire <paul.lemire@kdab.com>2018-06-20 13:19:13 +0000
commitbe0cd9c0b19f1f1b72d2bc165e948d162b998f88 (patch)
tree9f5d2c1d94f75850c4e4667f753714be763f095a /src/plugins/sceneparsers
parent7b2d0fdba63c0aca5e37f59706455618787a44eb (diff)
Fix compile warnings
Change-Id: I71f1352de28383d5105c7ff887191265b509d191 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/plugins/sceneparsers')
-rw-r--r--src/plugins/sceneparsers/gltf/gltfimporter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/sceneparsers/gltf/gltfimporter.cpp b/src/plugins/sceneparsers/gltf/gltfimporter.cpp
index d2f04d5cb..7df3e26d1 100644
--- a/src/plugins/sceneparsers/gltf/gltfimporter.cpp
+++ b/src/plugins/sceneparsers/gltf/gltfimporter.cpp
@@ -1167,7 +1167,8 @@ void GLTFImporter::processJSONBufferView(const QString &id, const QJsonObject& j
qUtf16PrintableImpl(bufferData.path), qUtf16PrintableImpl(id));
}
- Qt3DRender::QBuffer *b(new Qt3DRender::QBuffer(ty));
+ Qt3DRender::QBuffer *b = new Qt3DRender::QBuffer();
+ b->setType(ty);
b->setData(bytes);
m_buffers[id] = b;
}