Show
Ignore:
Timestamp:
04/24/14 19:26:46 (3 hours ago)
Author:
robert
Message:

From Farshid Lashkari, "I've attached a small fix to the Collada loader which prevents a null pointer access in some cases."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgGA/EventQueue

    r13041 r13376  
    6565        /** Set the graphics context associated with this event queue.*/ 
    6666        void setGraphicsContext(osg::GraphicsContext* context) { getCurrentEventState()->setGraphicsContext(context); } 
     67         
     68        osg::GraphicsContext* getGraphicsContext() { return getCurrentEventState()->getGraphicsContext(); } 
     69 
     70        const osg::GraphicsContext* getGraphicsContext() const { return getCurrentEventState()->getGraphicsContext(); } 
     71 
     72        /** Read the window record dimensions from the graphics context. */ 
     73        void syncWindowRectangleWithGraphcisContext(); 
    6774 
    6875