Browse Source

backward compat

ncannasse 7 years ago
parent
commit
5e2708a417
1 changed files with 4 additions and 0 deletions
  1. 4 0
      h3d/impl/DirectXDriver.hx

+ 4 - 0
h3d/impl/DirectXDriver.hx

@@ -120,7 +120,9 @@ class DirectXDriver extends h3d.impl.Driver {
 
 	public function new() {
 		window = @:privateAccess dx.Window.windows[0];
+		#if (hldx >= "1.6.0")
 		Driver.setErrorHandler(onDXError);
+		#end
 		reset();
 	}
 
@@ -173,7 +175,9 @@ class DirectXDriver extends h3d.impl.Driver {
 	}
 
 	override function dispose() {
+		#if (hldx >= "1.6.0")
 		Driver.disposeDriver(driver);
+		#end
 		driver = null;
 	}