소스 검색

fixed overdraw

Nicolas Cannasse 11 년 전
부모
커밋
dceb6bdf71
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h2d/SpriteBatch.hx

+ 1 - 1
h2d/SpriteBatch.hx

@@ -233,7 +233,7 @@ class SpriteBatch extends Drawable {
 			}
 			e = e.next;
 		}
-		var buffer = h3d.Buffer.ofFloats(tmpBuf, 8, [Dynamic, Quads, RawFormat]);
+		var buffer = h3d.Buffer.ofSubFloats(tmpBuf, 8, Std.int(pos/8), [Dynamic, Quads, RawFormat]);
 		ctx.beginDrawObject(this, tile.getTexture());
 		ctx.engine.renderQuadBuffer(buffer);
 		buffer.dispose();