Skip to content

Commit

Permalink
Added sanity check to AwayStats driver redraw.
Browse files Browse the repository at this point in the history
Fixes away3d#53
  • Loading branch information
richardolsson committed Aug 20, 2011
1 parent b0b995e commit 9a9c954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/away3d/debug/AwayStats.as
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9a9c954

Please sign in to comment.