소스 검색

Fix typo in Allocator fromBufferFlags.

clementlandrin 5 달 전
부모
커밋
d3d70a1a44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hxd/impl/Allocator.hx

+ 1 - 1
hxd/impl/Allocator.hx

@@ -29,7 +29,7 @@ class Allocator {
 	}
 
 	function fromBufferFlags(flags : haxe.EnumFlags<h3d.Buffer.BufferFlag>) : BufferFlags {
-		if ( flags == Dynamic )
+		if ( flags.toInt() == 0 )
 			return Static;
 		if ( flags == Dynamic )
 			return Dynamic;