Browse Source

Fix depth buffer leak.

clementlandrin 2 years ago
parent
commit
537718691e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/mat/Texture.hx

+ 1 - 1
h3d/mat/Texture.hx

@@ -338,7 +338,7 @@ class Texture {
 	public function dispose() {
 		if( t != null ) {
 			if ( isDepth() )
-				h3d.Engine.getCurrent().mem.deleteTexture(this);
+				h3d.Engine.getCurrent().mem.deleteDepth(this);
 			else
 				mem.deleteTexture(this);
 		}