Fixed crash in cfg by rearranging the code blocks so the codes that use the graphics context are only called when a graphics context is successfully aquired.
Fixed crash in cfg by rearranging the code blocks so the codes that use the graphics context are only called when a graphics context is successfully aquired.


XiaoCC/osg,ghub/osg,XiaoCC/osg,ntoand/osg,stmh/osg,koshman86/osg,koshman86/osg,stmh/osg,artoolkit/osg,artoolkit/osg,omega-hub/osg,omega-hub/osg,koshman86/osg,XiaoCC/osg,omega-hub/osg,koshman86/osg,artoolkit/osg,ghub/osg,ntoand/osg,XiaoCC/osg,XiaoCC/osg,omega-hub/osg,ghub/osg,ghub/osg,stmh/osg,ntoand/osg,artoolkit/osg,stmh/osg,stmh/osg,ntoand/osg