From e359439b86eaa8efcdada1777ad242ff1691435a Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 10 Feb 2013 20:47:38 +0100 Subject: [PATCH] Updated unpackHalf2x16 implementation --- glm/core/func_packing.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/core/func_packing.inl b/glm/core/func_packing.inl index 6cdecf64..fd680470 100644 --- a/glm/core/func_packing.inl +++ b/glm/core/func_packing.inl @@ -187,7 +187,7 @@ namespace glm Pack.orig.a = detail::toFloat16(v.x); Pack.orig.b = detail::toFloat16(v.y); - return *(uint*)&Pack; + return Pack.other; } GLM_FUNC_QUALIFIER vec2 unpackHalf2x16(uint const & v)