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

missing min(genIType, int) and max(genIType, int) #616

Closed
zholos opened this issue Mar 13, 2017 · 1 comment
Closed

missing min(genIType, int) and max(genIType, int) #616

zholos opened this issue Mar 13, 2017 · 1 comment
Assignees
Milestone

Comments

@zholos
Copy link

zholos commented Mar 13, 2017

These used to work in GLM 0.9.7, but don't in GLM 0.9.8:

glm::min(glm::ivec2(1), 1);
glm::max(glm::ivec2(1), 1);
error: static_assert failed "'min' only accept floating-point inputs for the interpolator a"
error: static_assert failed "'max' only accept floating-point inputs for the interpolator a"

Since min(genIType, int) and max(genIType, int) are specified by GLSL, I think they should work in GLM even without defining GLM_FORCE_UNRESTRICTED_GENTYPE from #378.

@Groovounet
Copy link
Member

This issue is fixed in GLM 0.9.8 branch for GLM 0.9.8.5 release.

Thanks for reporting!
Christophe

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

2 participants