Nicolas Cannasse 9 năm trước cách đây
mục cha
commit
376ad0bb9f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      h3d/impl/GlDriver.hx

+ 2 - 1
h3d/impl/GlDriver.hx

@@ -529,9 +529,10 @@ class GlDriver extends Driver {
 	var streamPos : Int;
 	
 	function expandStream(needed:Int) {
+		GL.finish();
+		
 		// too much data in our tmp buffer, let's flush it
 		if( streamPos > (needed >> 1) && needed > 16 << 20 ) {
-			GL.finish();
 			needed -= streamPos;
 			streamPos = 0;
 			if( needed < streamLen )