From 62f9d57d8e4e9dc77f3eceb9f9c8413998143ca5 Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Mon, 20 Oct 2014 08:59:46 +0200 Subject: QMeshData: enum for primitives Each value in the enums maps directly to the correct GLint for a given primitive patch. This allows to still return an int to be used directly by the renderer. This should also fix compilation error of ES2. Change-Id: I7ec54dcb2cbb02b67fa6225bb80fb7e691687e2c Reviewed-by: Sean Harmer --- src/render/io/gltfparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/io/gltfparser.cpp') diff --git a/src/render/io/gltfparser.cpp b/src/render/io/gltfparser.cpp index f41a5ed23..649482412 100644 --- a/src/render/io/gltfparser.cpp +++ b/src/render/io/gltfparser.cpp @@ -700,7 +700,7 @@ void GLTFParser::processJSONMesh( QString id, QJsonObject jsonObj ) continue; } - QMeshDataPtr md( new QMeshData( type ) ); + QMeshDataPtr md( new QMeshData( static_cast(type) ) ); m_meshMaterialDict[md.data()] = material; QJsonObject attrs = primObj.value(KEY_ATTRIBUTES).toObject(); -- cgit v1.2.3