-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Divide glm::vec3 by its own member #116
Comments
Hi, I managed to reproduce this bug on Visual C++ 2013 with GLM 0.9.5 branch... The most strange bug I have ever experienced. Oo The code executed is: x and y are modified... z isn't. Oo What version of GLM and what compiler are you using? Thanks, |
So the problem is that the divisor is passed by const reference... |
It looks like it. I was using version 0.9.4.5 with gcc on linux. I had the problem with mingw on windows, too. |
This bug has been fixed in GLM 0.9.4 and GLM 0.9.5 branch. Thanks for contributing, |
Hello,
I have come across a strange issue. If you type
then v will hold
x = 0.5, y = 1, z = 3
instead of the expected
x = 0.5, y = 1, z = 1.5
This issue is present with all glm::vec types.
Edit: I was just investigating it more, it seems to be the case with all arithmetic operators.
The text was updated successfully, but these errors were encountered: