diff --git a/glm/gtx/texture.inl b/glm/gtx/texture.inl index 593c826141..a77d4344d1 100644 --- a/glm/gtx/texture.inl +++ b/glm/gtx/texture.inl @@ -11,7 +11,7 @@ namespace glm template inline T levels(T Extent) { - return vec<1, T, defaultp>(Extent).x; + return levels(vec<1, T, defaultp>(Extent)); } }//namespace glm