浏览代码

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

clementlandrin 2 年之前
父节点
当前提交
5556b79faf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/mat/Texture.hx

+ 1 - 1
h3d/mat/Texture.hx

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