Permalink
Browse files

changed setup order on context creation to avoid needless texture re-…

…initializations
  • Loading branch information...
1 parent d74c9a0 commit 25f100881f770bc82f45aa4b1f453deacf5def1b @PrimaryFeather PrimaryFeather committed Mar 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 starling/src/starling/core/Starling.as
@@ -343,10 +343,10 @@ package starling.core
makeCurrent();
initializeGraphicsAPI();
- initializeRoot();
+ dispatchEvent(new starling.events.Event(starling.events.Event.CONTEXT3D_CREATE));
+ initializeRoot();
mTouchProcessor.simulateMultitouch = mSimulateMultitouch;
- dispatchEvent(new starling.events.Event(starling.events.Event.CONTEXT3D_CREATE));
}
private function onEnterFrame(event:Event):void

0 comments on commit 25f1008

Please sign in to comment.