mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Spell out order-of-evaluation for the compiler.
This commit is contained in:
parent
d2dbb2c116
commit
35337ef2c2
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue