diff --git a/examples/raytrace/gltf-loader.cc b/examples/raytrace/gltf-loader.cc index 58cee99..ba4db97 100644 --- a/examples/raytrace/gltf-loader.cc +++ b/examples/raytrace/gltf-loader.cc @@ -264,7 +264,7 @@ bool LoadGLTF(const std::string &filename, float scale, v3fArray positions( arrayAdapter(dataPtr, count, byte_stride)); for (size_t i{0}; i < indices.size(); ++i) { - const auto index{indices[i]}; + const auto index(indices[i]); const auto v = positions[index]; std::cout << '(' << v.x << ", " << v.y << ", " << v.z << ")\n"; @@ -292,7 +292,7 @@ bool LoadGLTF(const std::string &filename, float scale, v3fArray normals( arrayAdapter(dataPtr, count, byte_stride)); for (size_t i{0}; i < indices.size(); ++i) { - const auto index{indices[i]}; + const auto index(indices[i]); const auto v = normals[index]; std::cout << '(' << v.x << ", " << v.y << ", " << v.z << ")\n";