Show
Ignore:
Timestamp:
02/06/09 11:35:21 (6 years ago)
Author:
robert
Message:

From Alberto Luaces, "here are some minor fixes to notify warnings were the std::hex modifier was
used but never restored to the decimal notation. That made OSG print messages
like the following after some notifications:

Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,)
RenderStage::drawInner(,) FBO status= 0x8cd5
[...]
Scaling image 'brick_side.JPG' from (1b4,24f) to (200,200) <--- Values in hex
because of previous error.
[...]"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/Image.cpp

    r9643 r9682  
    277277        default:  
    278278        { 
    279             notify(WARN)<<"error computeFormatType = "<<std::hex<<pixelFormat<<std::endl; 
     279            notify(WARN)<<"error computeFormatType = "<<std::hex<<pixelFormat<<std::dec<<std::endl; 
    280280            return 0; 
    281281        } 
     
    378378        default: 
    379379        { 
    380             notify(WARN)<<"error pixelFormat = "<<std::hex<<pixelFormat<<std::endl; 
     380            notify(WARN)<<"error pixelFormat = "<<std::hex<<pixelFormat<<std::dec<<std::endl; 
    381381            return 0; 
    382382        }