Browse Source

don't call finish() in present!

Nicolas Cannasse 8 năm trước cách đây
mục cha
commit
7890130ac9
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      h3d/impl/GlDriver.hx

+ 4 - 0
h3d/impl/GlDriver.hx

@@ -897,6 +897,10 @@ class GlDriver extends Driver {
 	}
 
 	override function present() {
+		#if hxsdl
+		// let the window buffer swap do the job
+		return;
+		#end
 		gl.finish();
 	}