From J.P. Delport, fixed bug caused by a typo in PixelBufferObject constructor

This commit is contained in:
Robert Osfield 2009-10-07 12:54:14 +00:00
parent ae7dfc5796
commit dff56a15c6

View File

@ -1326,7 +1326,7 @@ PixelBufferObject::PixelBufferObject(osg::Image* image):
BufferObject()
{
setTarget(GL_PIXEL_UNPACK_BUFFER_ARB);
setTarget(GL_STREAM_DRAW_ARB);
setUsage(GL_STREAM_DRAW_ARB);
osg::notify(osg::NOTICE)<<"Constructing PixelBufferObject for image="<<image<<std::endl;