diff --git a/aliasing.patch b/aliasing.patch new file mode 100644 index 0000000..9511d81 --- /dev/null +++ b/aliasing.patch @@ -0,0 +1,527 @@ +Index: glm/glm/detail/func_common.inl +=================================================================== +--- glm.orig/glm/detail/func_common.inl ++++ glm/glm/detail/func_common.inl +@@ -850,7 +850,9 @@ namespace detail + + GLM_FUNC_QUALIFIER int floatBitsToInt(float const & v) + { +- return reinterpret_cast(const_cast(v)); ++ int Bits; ++ std::memcpy(&Bits, &v, sizeof(Bits)); ++ return Bits; + } + + template