Browse Source

flush on sync

ncannasse 8 years ago
parent
commit
eccfb6f7c9
1 changed files with 6 additions and 0 deletions
  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();