Przeglądaj źródła

Fix depth buffer leak.

clementlandrin 2 lat temu
rodzic
commit
537718691e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      h3d/mat/Texture.hx

+ 1 - 1
h3d/mat/Texture.hx

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