Ver Fonte

don't present before backbuffer setup

ncannasse há 7 anos atrás
pai
commit
92c9f0b1c0
1 ficheiros alterados com 1 adições e 0 exclusões
  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);