浏览代码

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

borisrp 4 月之前
父节点
当前提交
925c0da931
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() {