浏览代码

fixed rotation when buffering disabled

ncannasse 10 年之前
父节点
当前提交
a0b6060e08
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      h2d/RenderContext.hx

+ 2 - 2
h2d/RenderContext.hx

@@ -158,8 +158,8 @@ class RenderContext extends h3d.impl.RenderContext {
 	public function drawTile( obj : h2d.Drawable, tile : h2d.Tile ) {
 		beginDraw(obj, tile.getTexture(), true, true);
 		baseShader.color.set(obj.color.r, obj.color.g, obj.color.b, obj.color.a);
-		baseShader.absoluteMatrixA.set(tile.width * obj.matA, tile.width * obj.matC, obj.absX + tile.dx * obj.matA + tile.dy * obj.matC);
-		baseShader.absoluteMatrixB.set(tile.height * obj.matB, tile.height * obj.matD, obj.absY + tile.dx * obj.matB + tile.dy * obj.matD);
+		baseShader.absoluteMatrixA.set(tile.width * obj.matA, tile.height * obj.matC, obj.absX + tile.dx * obj.matA + tile.dy * obj.matC);
+		baseShader.absoluteMatrixB.set(tile.width * obj.matB, tile.height * obj.matD, obj.absY + tile.dx * obj.matB + tile.dy * obj.matD);
 		baseShader.uvPos.set(tile.u, tile.v, tile.u2 - tile.u, tile.v2 - tile.v);
 		beforeDraw();
 		if( fixedBuffer == null || fixedBuffer.isDisposed() ) {