Explorar o código

flush on sync

ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
eccfb6f7c9
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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();