From 9a9c9542d0d4646d5189c7e2f00e8f835a4f9541 Mon Sep 17 00:00:00 2001 From: Richard Olsson Date: Sat, 20 Aug 2011 12:38:38 +0200 Subject: [PATCH] Added sanity check to AwayStats driver redraw. Fixes #53 --- src/away3d/debug/AwayStats.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/away3d/debug/AwayStats.as b/src/away3d/debug/AwayStats.as index e373161..3530c84 100644 --- a/src/away3d/debug/AwayStats.as +++ b/src/away3d/debug/AwayStats.as @@ -644,7 +644,7 @@ package away3d.debug // Show software (SW) or hardware (HW) if (!_showing_driv_info) { - if (_views && _views.length && _views[0].renderer.stage3DProxy) { + if (_views && _views.length && _views[0].renderer.stage3DProxy && _views[0].renderer.stage3DProxy.context3D) { var di : String = _views[0].renderer.stage3DProxy.context3D.driverInfo; _swhw_tf.text = di.substr(0, di.indexOf(' ')); _showing_driv_info = true;