瀏覽代碼

flush on sync

ncannasse 8 年之前
父節點
當前提交
eccfb6f7c9
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      h3d/scene/Graphics.hx

+ 6 - 0
h3d/scene/Graphics.hx

@@ -180,6 +180,12 @@ class Graphics extends Mesh {
 		}
 	}
 
+	override function sync(ctx:RenderContext) {
+		super.sync(ctx);
+		flush();
+		bprim.flush();
+	}
+
 	override function draw( ctx : RenderContext ) {
 		flush();
 		bprim.flush();