Thank you very much Stephan, I tried to modify my code as suggested: the warning disappeared and my subload callback is called.
Tomorrow I'll try with the latest tagged release (2.9.13) and let you know. Alessandro On Wed, Apr 27, 2011 at 9:34 PM, Stephan Huber <[email protected]>wrote: > Hi, > > Am 27.04.11 09:36, schrieb Alessandro Terenzi: > > what do you think about the sample code I've sent? Is there something > wrong > > with it? > > Your example failed to work on my mac with a recent osg-version. > Unfortunately I hadn't more time to investige the issue further. > > I had to change > > glTexImage2D(GL_TEXTURE_2D, 0, > > osg::Image::computeNumComponents(_image->getInternalTextureFormat()), > (int)m_POT_width, > (int)m_POT_height, > 0, > _image->getPixelFormat(), > _image->getDataType(), > 0 > ); > > to > glTexImage2D( > GL_TEXTURE_2D, > 0, > _image->getInternalTextureFormat(), > (int)m_POT_width, > (int)m_POT_height, > 0, > _image->getPixelFormat(), > _image->getDataType(), > _image->data() > ); > > to get rid of the opengl-warning. But the subload-callback is never > called on my end. > > > Perhaps i find some time this weekend to do some more tests. > > cheers, > Stephan > _______________________________________________ > 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

