Show
Ignore:
Timestamp:
02/13/07 23:39:59 (7 years ago)
Author:
robert
Message:

Fixed warning

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgslice/osgslice.cpp

    r5962 r6178  
    198198        std::cout << "before readPixels: _r = " << sp->_image->r() << std::endl; 
    199199         
    200         tmpImage->readPixels(sceneView->getViewport()->x(),sceneView->getViewport()->y(),sceneView->getViewport()->width(),sceneView->getViewport()->height(),GL_RGBA,GL_UNSIGNED_BYTE); 
     200        tmpImage->readPixels(static_cast<int>(sceneView->getViewport()->x()), 
     201                             static_cast<int>(sceneView->getViewport()->y()), 
     202                             static_cast<int>(sceneView->getViewport()->width()), 
     203                             static_cast<int>(sceneView->getViewport()->height()), 
     204                             GL_RGBA,GL_UNSIGNED_BYTE); 
    201205         
    202206//        std::cout << "vor copySubImage: _r = " << sp->_image->r() << std::endl;