Jelajahi Sumber

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

borisrp 4 bulan lalu
induk
melakukan
925c0da931
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      hxd/BufferFormat.hx

+ 1 - 1
hxd/BufferFormat.hx

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