ソースを参照

add option to enable buffering for emitTile (#868)

Eric 5 年 前
コミット
1e1789fcf1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      h2d/RenderContext.hx

+ 2 - 2
h2d/RenderContext.hx

@@ -12,7 +12,7 @@ private typedef RenderZoneStack = { hasRZ:Bool, x:Float, y:Float, w:Float, h:Flo
 @:access(h2d.Scene)
 class RenderContext extends h3d.impl.RenderContext {
 
-	static inline var BUFFERING = false;
+	static inline var BUFFERING = #if heaps_emit_tile_buffering true #else false #end;
 
 	public var globalAlpha = 1.;
 	public var buffer : hxd.FloatBuffer;
@@ -606,4 +606,4 @@ class RenderContext extends h3d.impl.RenderContext {
 		return true;
 	}
 
-}
+}