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

Creating Identity matrix - different result between versions 9.9.0 and 9.5.0 #797

Closed
demensdeum opened this Issue Aug 5, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@demensdeum

demensdeum commented Aug 5, 2018

After updating to new Ubuntu 18.04, I couldn't see anything in my game. I found reason in GLM.
Trying to create identity matrix:

auto matrix = glm::mat4();

Gives different result on 9.9.0 and 9.5.0, which leads to incorrect matrix in my game.
Here is diff between 9.5.0 and 9.9.0 in apitrace calls:
apicalls

And if I create identity matrix that way:
auto matrix = glm::mat4(1.0);

Then everything good in both versions.

Related source code:
https://gitlab.com/demensdeum/FSGL/blob/master/Data/Object/FSGLObject.cpp#L45
Line 45 (glm::mat4 FSGLObject::matrix())

@Groovounet Groovounet added the question label Aug 5, 2018

@Groovounet

This comment has been minimized.

Show comment
Hide comment
@Groovounet

Groovounet Aug 5, 2018

Member

Hi,

GLM types are not initialized by default. If you want types to be initialized you can define GLM_FORCE_CTOR_INIT before including GLM headers.

Thanks,
Christophe

Member

Groovounet commented Aug 5, 2018

Hi,

GLM types are not initialized by default. If you want types to be initialized you can define GLM_FORCE_CTOR_INIT before including GLM headers.

Thanks,
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment