diff --git a/glm/gtx/transform2.inl b/glm/gtx/transform2.inl index 0118ab09..cb6ff9ec 100644 --- a/glm/gtx/transform2.inl +++ b/glm/gtx/transform2.inl @@ -108,7 +108,7 @@ namespace glm template GLM_FUNC_QUALIFIER mat<4, 4, T, Q> scaleBias(T scale, T bias) { - mat<4, 4, T, Q> result; + mat<4, 4, T, Q> result(T(0)); result[3] = vec<4, T, Q>(vec<3, T, Q>(bias), static_cast(1)); result[0][0] = scale; result[1][1] = scale;