diff --git a/examples/osgscreencapture/osgscreencapture.cpp b/examples/osgscreencapture/osgscreencapture.cpp index 43a87910e..6a3af8315 100644 --- a/examples/osgscreencapture/osgscreencapture.cpp +++ b/examples/osgscreencapture/osgscreencapture.cpp @@ -67,8 +67,16 @@ class WindowCaptureCallback : public osg::Camera::DrawCallback { if (gc->getTraits()) { - if (gc->getTraits()->alpha) _pixelFormat = GL_BGRA; - else _pixelFormat = GL_BGR; + if (gc->getTraits()->alpha) + { + osg::notify(osg::NOTICE)<<"Select GL_BGRA read back format"<