Fixed glm::log2<int>() returns wrong value, missing static assert #683

This commit is contained in:
Christophe Riccio
2017-09-20 14:17:42 +02:00
parent 5606dd1aac
commit 1bf24f8344
3 changed files with 3 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ namespace log2_
glm::ivec3 D0(glm::log2(glm::vec3(16.f)));
glm::ivec4 E0(glm::log2(glm::vec4(16.f)));
int A1 = glm::log2(int(16));
int A1 = glm::log2(int(1024));
glm::ivec1 B1 = glm::log2(glm::ivec1(16));
glm::ivec2 C1 = glm::log2(glm::ivec2(16));
glm::ivec3 D1 = glm::log2(glm::ivec3(16));