2
0
Эх сурвалжийг харах

prevent return true on cleanTextures if texture already disposed

Nicolas Cannasse 5 жил өмнө
parent
commit
037ae00031

+ 1 - 1
h3d/impl/MemoryManager.hx

@@ -232,7 +232,7 @@ class MemoryManager {
 	public function cleanTextures( force = true ) {
 		textures.sort(sortByLRU);
 		for( t in textures ) {
-			if( t.realloc == null ) continue;
+			if( t.realloc == null || t.isDisposed() ) continue;
 			if( force || t.lastFrame < hxd.Timer.frameCount - 3600 ) {
 				t.dispose();
 				return true;