Browse Source

Updated unpackHalf2x16 implementation

Christophe Riccio 13 years ago
parent
commit
e359439b86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/core/func_packing.inl

+ 1 - 1
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)