Show
Ignore:
Timestamp:
03/13/10 12:28:00 (3 years ago)
Author:
robert
Message:

Refactored the initialization of OSX windowing settings so that it's done on demand rather than on startup.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm

    r10887 r11207  
    13831383// ---------------------------------------------------------------------------------------------------------- 
    13841384 
    1385 struct CocoaWindowingSystemInterface : public DarwinWindowingSystemInterface { 
    1386      
    1387     CocoaWindowingSystemInterface() 
    1388     :    DarwinWindowingSystemInterface() 
    1389      
    1390     {         
    1391     } 
    1392      
     1385struct CocoaWindowingSystemInterface : public DarwinWindowingSystemInterface 
     1386{ 
     1387 
     1388    CocoaWindowingSystemInterface() : DarwinWindowingSystemInterface() 
     1389    { 
     1390    } 
     1391 
    13931392    void initAsStandaloneApplication()  
    13941393    { 
     1394        _init(); 
     1395 
    13951396        static bool s_inited = false; 
    13961397        if (s_inited) return; 
     
    14221423    virtual osg::GraphicsContext* createGraphicsContext(osg::GraphicsContext::Traits* traits)  
    14231424    { 
     1425        _init(); 
     1426 
    14241427        if (!traits->pbuffer)  
    14251428        {