diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2018-06-20 10:15:14 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2018-06-20 13:19:13 +0000 |
commit | be0cd9c0b19f1f1b72d2bc165e948d162b998f88 (patch) | |
tree | 9f5d2c1d94f75850c4e4667f753714be763f095a /src/plugins/sceneparsers/gltf | |
parent | 7b2d0fdba63c0aca5e37f59706455618787a44eb (diff) |
Fix compile warnings
Change-Id: I71f1352de28383d5105c7ff887191265b509d191
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/plugins/sceneparsers/gltf')
-rw-r--r-- | src/plugins/sceneparsers/gltf/gltfimporter.cpp | 3 |
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; } |