Browse Source

prevent onStageResized if disposed

ncannasse 12 years ago
parent
commit
fcbd5a2d2f
1 changed files with 1 additions and 1 deletions
  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);