Pārlūkot izejas kodu

Fix null allocPos crash

trethaller 7 gadi atpakaļ
vecāks
revīzija
50d9779a43
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      h3d/mat/Texture.hx

+ 2 - 1
h3d/mat/Texture.hx

@@ -261,7 +261,8 @@ class Texture {
 		if( t != null ) {
 		if( t != null ) {
 			mem.deleteTexture(this);
 			mem.deleteTexture(this);
 			#if debug
 			#if debug
-			this.allocPos.customParams = ["#DISPOSED"];
+			if(this.allocPos != null)
+				this.allocPos.customParams = ["#DISPOSED"];
 			#end
 			#end
 		}
 		}
 	}
 	}