Explorar o código

Fix Mat4 InputFormat gives bad size (0 instead of 16).
Also remove the "&7" magic mask with more explicit cast.

borisrp hai 3 meses
pai
achega
925c0da931
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/BufferFormat.hx

+ 1 - 1
hxd/BufferFormat.hx

@@ -43,7 +43,7 @@ enum abstract InputFormat(Int) {
 	}
 
 	public inline function getSize() {
-		return this & 7;
+		return this == cast (DBytes4,Int) ? 1 : this;
 	}
 
 	public inline function toInt() {