Show
Ignore:
Timestamp:
04/01/15 11:37:53 (13 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/osgWrappers/serializers/osg/Geometry.cpp

    r13497 r13502  
    77    ADD_USER_VALUE( BIND_OFF ); 
    88    ADD_USER_VALUE( BIND_OVERALL ); 
    9     ADD_USER_VALUE( BIND_PER_PRIMITIVE_SET ); 
    10     ADD_USER_VALUE( BIND_PER_PRIMITIVE ); 
     9    ADD_USER_VALUE( BIND_PER_PRIMITIVE_SET );     
     10    lookup->add("BIND_PER_PRIMITIVE",3); //ADD_USER_VALUE( BIND_PER_PRIMITIVE ); 
    1111    ADD_USER_VALUE( BIND_PER_VERTEX ); 
    1212END_USER_TABLE()