Hi, image->setImage(width, height, 0,... ) can be a problem... because 0 in the depth or the image... so if it is a simple 2D image, put 1.
Vincent. 2008/4/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I use osg 2.3.7 on vista in a ref class > > > > the following lines: > > > > osg::Image * image = new osg::Image; > > image->setImage(width, height, 0, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, > pixels, osg::Image::AllocationMode::USE_NEW_DELETE); > > > > > > causes the warning: > > > > Warning 4 warning C4482: nonstandard extension used: enum > 'osg::Image::AllocationMode' used in qualified name ... > > > > isnt this the correct way of creating a image if the pixels have been > created using new? > > > > Erlend > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

