Skip to content
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

CAUTION: glm no longer initializes mat4 #2

Open
shatteredmoon opened this issue Sep 11, 2019 · 0 comments
Open

CAUTION: glm no longer initializes mat4 #2

shatteredmoon opened this issue Sep 11, 2019 · 0 comments

Comments

@shatteredmoon
Copy link

This code assumes that new mat4 objects are initialized to the identity matrix. It looks like glm stopped doing this with version v0.9.9.0.

You can use GLM_FORCE_CTOR_INIT to construct an identity matrix

#define GLM_FORCE_CTOR_INIT
#include <glm/glm.hpp>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant