Show
Ignore:
Timestamp:
04/01/15 11:37:53 (22 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/src/osgGA/GUIEventAdapter.cpp

    r13376 r13890  
    2626    _handled(false), 
    2727    _eventType(NONE), 
    28     _time(0.0), 
    2928    _windowX(0), 
    3029    _windowY(0), 
     
    4948 
    5049GUIEventAdapter::GUIEventAdapter(const GUIEventAdapter& rhs,const osg::CopyOp& copyop): 
    51     osg::Object(rhs,copyop), 
     50    osgGA::Event(rhs,copyop), 
    5251    _handled(rhs._handled), 
    5352    _eventType(rhs._eventType), 
    54     _time(rhs._time), 
    5553    _context(rhs._context), 
    5654    _windowX(rhs._windowX),