Show
Ignore:
Timestamp:
04/01/15 11:37:53 (68 minutes 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/osg/Geometry

    r13491 r13502  
    236236            BIND_OVERALL=1, 
    237237            BIND_PER_PRIMITIVE_SET=2, 
     238#if defined(OSG_USE_DEPRECATED_GEOMETRY_METHODS) 
    238239            BIND_PER_PRIMITIVE=3, /// no longer supported 
     240#endif 
    239241            BIND_PER_VERTEX=4 
    240242        };