- Timestamp:
- 05/26/08 14:01:24 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgscreencapture/osgscreencapture.cpp
r8342 r8343 68 68 if (gc->getTraits()) 69 69 { 70 if (gc->getTraits()->alpha) _pixelFormat = GL_BGRA; 71 else _pixelFormat = GL_BGR; 70 if (gc->getTraits()->alpha) 71 { 72 osg::notify(osg::NOTICE)<<"Select GL_BGRA read back format"<<std::endl; 73 _pixelFormat = GL_BGRA; 74 } 75 else 76 { 77 osg::notify(osg::NOTICE)<<"Select GL_BGR read back format"<<std::endl; 78 _pixelFormat = GL_BGR; 79 } 72 80 } 73 81 … … 95 103 break; 96 104 case(TRIPLE_PBO): 97 osg::notify(osg::NOTICE)<<"Reading window usig glReadPixels, with a double buffer PixelBufferObject."<<std::endl;105 osg::notify(osg::NOTICE)<<"Reading window usig glReadPixels, with a triple buffer PixelBufferObject."<<std::endl; 98 106 _pboBuffer.push_back(0); 99 107 _pboBuffer.push_back(0);
