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

    r13130 r13376  
    252252    _valid = (_pixelFormat != NULL); 
    253253    _initialized = true; 
     254     
     255    // make sure the event queue has the correct window rectangle size and input range 
     256    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    254257} 
    255258 
     
    453456 
    454457    _realized = true; 
     458 
     459    // make sure the event queue has the correct window rectangle size and input range 
     460    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
     461     
    455462    return _realized; 
    456463}