Skip to content

Commit

Permalink
avoiding side effect of profile selection (refs Gamua#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimaryFeather committed Jan 22, 2014
1 parent 2b2005e commit c870279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starling/src/starling/core/Starling.as
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c870279

Please sign in to comment.