diff --git a/starling/src/starling/core/Starling.as b/starling/src/starling/core/Starling.as index 87d5d02dd..8909533cb 100644 --- a/starling/src/starling/core/Starling.as +++ b/starling/src/starling/core/Starling.as @@ -383,7 +383,7 @@ package starling.core // sort profiles descending profiles.sort(compareProfiles); - mProfile = profiles.pop(); + mProfile = profiles[profiles.length-1]; stage3D.requestContext3D(renderMode, mProfile); } else