Show
Ignore:
Timestamp:
04/01/15 11:37:53 (19 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/osgDB/ObjectWrapper.cpp

    r13584 r13788  
    536536    arrayTable.add( "Vec4dArray", ID_VEC4D_ARRAY ); 
    537537 
     538    arrayTable.add( "Vec2iArray", ID_VEC2I_ARRAY ); 
     539    arrayTable.add( "Vec3iArray", ID_VEC3I_ARRAY ); 
     540    arrayTable.add( "Vec4iArray", ID_VEC4I_ARRAY ); 
     541    arrayTable.add( "Vec2uiArray", ID_VEC2UI_ARRAY ); 
     542    arrayTable.add( "Vec3uiArray", ID_VEC3UI_ARRAY ); 
     543    arrayTable.add( "Vec4uiArray", ID_VEC4UI_ARRAY ); 
     544 
    538545    IntLookup& primitiveTable = _globalMap["PrimitiveType"]; 
    539546