Show
Ignore:
Timestamp:
04/01/15 11:37:53 (4 hours ago)
Author:
robert
Message:

From Lionel Largarde, "fix for the Image::computeNumberOfMipmapLevels method. The method did use the float version of the log function and the / operator.
It works for most of the input sizes, but fails for 8192, 32768...
For 8192, the method returns 13 instead of 14."

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