Skip to content

Commit 23551ae

Browse files
authored
fix levels() calculation for scalars
1 parent 33b4a62 commit 23551ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glm/gtx/texture.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace glm
1111
template <typename T>
1212
inline T levels(T Extent)
1313
{
14-
return vec<1, T, defaultp>(Extent).x;
14+
return levels(vec<1, T, defaultp>(Extent));
1515
}
1616
}//namespace glm
1717

0 commit comments

Comments
 (0)