ソースを参照

don't present before backbuffer setup

ncannasse 7 年 前
コミット
92c9f0b1c0
1 ファイル変更1 行追加0 行削除
  1. 1 0
      h3d/impl/DirectXDriver.hx

+ 1 - 0
h3d/impl/DirectXDriver.hx

@@ -218,6 +218,7 @@ class DirectXDriver extends h3d.impl.Driver {
 	}
 
 	override function present() {
+		if( defaultTarget == null ) return;
 		var old = hxd.System.allowTimeout;
 		if( old ) hxd.System.allowTimeout = false;
 		Driver.present(window.vsync ? 1 : 0, None);