- Timestamp:
- 05/26/08 13:59:25 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgscreencapture/osgscreencapture.cpp
r8341 r8342 66 66 _currentPboIndex(0) 67 67 { 68 if (gc->getTraits()) 69 { 70 if (gc->getTraits()->alpha) _pixelFormat = GL_BGRA; 71 else _pixelFormat = GL_BGR; 72 } 73 68 74 getSize(gc, _width, _height); 69 75 … … 379 385 if(src) 380 386 { 381 memcpy(image->data(), src, image->getTotalSizeInBytes());387 // memcpy(image->data(), src, image->getTotalSizeInBytes()); 382 388 383 389 ext->glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB);
