Procházet zdrojové kódy

no longer check for disposed driver (handled in driver)

ncannasse před 10 roky
rodič
revize
31488c9702
1 změnil soubory, kde provedl 0 přidání a 7 odebrání
  1. 0 7
      hxd/res/Image.hx

+ 0 - 7
hxd/res/Image.hx

@@ -134,13 +134,6 @@ class Image extends Resource {
 		} else {
 			// use native decoding
 			entry.loadBitmap(function(bmp) {
-
-				// if the 3D context has been disposed while we're loading the texture, let's retry later
-				if( h3d.Engine.getCurrent().driver.isDisposed() ) {
-					haxe.Timer.delay(loadTexture, 500);
-					return;
-				}
-
 				var bmp = bmp.toBitmap();
 				tex.alloc();
 				if( bmp.width != tex.width || bmp.height != tex.height ) {