Explorar el Código

don't present before backbuffer setup

ncannasse hace 7 años
padre
commit
92c9f0b1c0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);