thanks!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thibault Genessay
Sent: 16. april 2008 15:05
To: OpenSceneGraph Users
Subject: Re: [osg-users] warning when creating image

Hi Erlend

> 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 ...

This is a C++ language issue. USE_NEW_DELETE is a member of
osg::Image, not of the enum osg::Image::AllocationMode
You should write: osg::Image::USE_NEW_DELETE, because even though your
(Microsoft ...) C++ understands what you mean this is not correct
code.

Besides, Vincent's remark still holds: at run-time, you will probably
run into a problem with the depth set to 0.

Regards

Thibault
_______________________________________________
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

Reply via email to