From 23551ae74e2742390ea22606fde36c8d344e6fdb Mon Sep 17 00:00:00 2001 From: Janeczko Jakub Date: Mon, 9 Sep 2024 02:27:13 +0200 Subject: [PATCH] fix levels() calculation for scalars --- glm/gtx/texture.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/texture.inl b/glm/gtx/texture.inl index 593c82614..a77d4344d 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