Fix linux build in C++11 strict

Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
This commit is contained in:
Arthur Brainville 2018-02-20 02:00:50 +01:00
parent b62e95f414
commit aad6f06208
No known key found for this signature in database
GPG Key ID: BC05C4812A06BCF3

View File

@ -264,7 +264,7 @@ bool LoadGLTF(const std::string &filename, float scale,
v3fArray positions( v3fArray positions(
arrayAdapter<v3f>(dataPtr, count, byte_stride)); arrayAdapter<v3f>(dataPtr, count, byte_stride));
for (size_t i{0}; i < indices.size(); ++i) { for (size_t i{0}; i < indices.size(); ++i) {
const auto index{indices[i]}; const auto index(indices[i]);
const auto v = positions[index]; const auto v = positions[index];
std::cout << '(' << v.x << ", " << v.y << ", " << v.z std::cout << '(' << v.x << ", " << v.y << ", " << v.z
<< ")\n"; << ")\n";
@ -292,7 +292,7 @@ bool LoadGLTF(const std::string &filename, float scale,
v3fArray normals( v3fArray normals(
arrayAdapter<v3f>(dataPtr, count, byte_stride)); arrayAdapter<v3f>(dataPtr, count, byte_stride));
for (size_t i{0}; i < indices.size(); ++i) { for (size_t i{0}; i < indices.size(); ++i) {
const auto index{indices[i]}; const auto index(indices[i]);
const auto v = normals[index]; const auto v = normals[index];
std::cout << '(' << v.x << ", " << v.y << ", " << v.z std::cout << '(' << v.x << ", " << v.y << ", " << v.z
<< ")\n"; << ")\n";