Hi,

Tim Allen wrote:

Then setting it
osg::ref_ptr<osg::Image> image=new osg::Image;
image->setImage(64,64,1,4,GL_RGBA,GL_UNSIGNED_BYTE,(unsigned char*)checkImage,osg::Image::USE_NEW_DELETE);

try
image->setImage(64,64,1,GL_RGBA,GL_RGBA,GL_UNSIGNED_BYTE,(unsigned char*)checkImage,osg::Image::NO_DELETE);

jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to