Prechádzať zdrojové kódy

remove swapTexture() - create issues with render target cache

Nicolas Cannasse 4 rokov pred
rodič
commit
51c6a622df
1 zmenil súbory, kde vykonal 0 pridanie a 14 odobranie
  1. 0 14
      h3d/mat/Texture.hx

+ 0 - 14
h3d/mat/Texture.hx

@@ -325,20 +325,6 @@ class Texture {
 			mem.deleteTexture(this);
 			mem.deleteTexture(this);
 	}
 	}
 
 
-	/**
-		Swap two textures, this is an immediate operation.
-		BEWARE : if the texture is a cached image (hxd.res.Image), the swap will affect the cache!
-	**/
-	public function swapTexture( t : Texture ) {
-		checkAlloc();
-		t.checkAlloc();
-		if( isDisposed() || t.isDisposed() )
-			throw "One of the two texture is disposed";
-		var tmp = this.t;
-		this.t = t.t;
-		t.t = tmp;
-	}
-
 	/**
 	/**
 		Downloads the current texture data from the GPU.
 		Downloads the current texture data from the GPU.
 		Beware, this is a very slow operation that shouldn't be done during rendering.
 		Beware, this is a very slow operation that shouldn't be done during rendering.