Forráskód Böngészése

Fix isDisposed method for depth buffer (compatibility with behavior of previous DepthBuffer class).

clementlandrin 2 éve
szülő
commit
5556b79faf
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      h3d/mat/Texture.hx

+ 1 - 1
h3d/mat/Texture.hx

@@ -221,7 +221,7 @@ class Texture {
 	}
 	}
 
 
 	public inline function isDisposed() {
 	public inline function isDisposed() {
-		return t == null && realloc == null;
+		return isDepth() ? t == null : t == null && realloc == null;
 	}
 	}
 
 
 	public function resize(width, height) {
 	public function resize(width, height) {