瀏覽代碼

prevent onStageResized if disposed

ncannasse 12 年之前
父節點
當前提交
fcbd5a2d2f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/Engine.hx

+ 1 - 1
h3d/Engine.hx

@@ -334,7 +334,7 @@ class Engine {
 	}
 	
 	function onStageResize(_) {
-		if( ctx != null && autoResize ) {
+		if( ctx != null && autoResize && ctx.driverInfo != "Disposed" ) {
 			var w = System.width, h = System.height;
 			if( w != width || h != height )
 				resize(w, h, antiAlias);