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

Fix depth buffer allocated with texture cache.

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

+ 2 - 1
h3d/mat/Texture.hx

@@ -213,7 +213,8 @@ class Texture {
 	}
 	}
 
 
 	public inline function isDisposed() {
 	public inline function isDisposed() {
-		return t == null && realloc == null;
+		// realloc unsupported on depth buffers.
+		return t == null && (isDepth() || realloc == null);
 	}
 	}
 
 
 	public function resize(width, height) {
 	public function resize(width, height) {