ncannasse 8 years ago
parent
commit
1730e3aeea
1 changed files with 2 additions and 1 deletions
  1. 2 1
      h3d/impl/DirectXDriver.hx

+ 2 - 1
h3d/impl/DirectXDriver.hx

@@ -111,7 +111,7 @@ class DirectXDriver extends h3d.impl.Driver {
 		#end
 		driver = Driver.create(window, backBufferFormat, options);
 		if( driver == null ) throw "Failed to initialize DirectX driver";
-		
+
 		var version = Driver.getSupportedVersion();
 		shaderVersion = if( version < 10 ) "3_0" else if( version < 11 ) "4_0" else "5_0";
 
@@ -508,6 +508,7 @@ class DirectXDriver extends h3d.impl.Driver {
 		if( to.t == null )
 			to.alloc();
 		to.t.res.copyResource(from.t.res);
+		to.flags.set(WasCleared);
 		return true;
 	}