Spell out order-of-evaluation for the compiler.

This commit is contained in:
Howard Stearns 2015-05-06 12:28:45 -07:00
parent d2dbb2c116
commit 35337ef2c2

View file

@ -101,7 +101,10 @@ bool OBJTokenizer::isNextTokenFloat() {
}
glm::vec3 OBJTokenizer::getVec3() {
auto v = glm::vec3(getFloat(), getFloat(), getFloat()); // N.B.: getFloat() has side-effect
auto x = getFloat(); // N.B.: getFloat() has side-effect
auto y = getFloat(); // And order of arguments is different on Windows/Linux.
auto z = getFloat();
auto v = glm::vec3(x, y, z);
while (isNextTokenFloat()) {
// the spec(s) get(s) vague here. might be w, might be a color... chop it off.
nextToken();