Skip to content

Regression in 7f2a5b89b30d143014bc0363b99dc3d942457ae7 #1255

@mgerhardy

Description

@mgerhardy
template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<3, T, Q> operator/(vec<3, T, Q> const& v, T scalar)
{
  return vec<3, T, Q>(v) *= 1/scalar;
}

7f2a5b8

this change breaks stuff like

glm::ivec3 center = _mins + _width / 2;

this basically means that center is now _mins because the division leads to *=0 for any scalar > 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions