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.


git-svn-id: 23b6355f2bb369032457de4eb5f713ee134f73a8@7606 16af8721-9629-0410-8352-f15c8da7e697

joevandyk/osg,joevandyk/osg,joevandyk/osg,joevandyk/osg,joevandyk/osg