Hi JP,

As soon as I attach an image, OSG crashes on me. The problem arises in 
FrameBufferObject::Pimpl::Pimpl.


Code:
        // This code crashes
        osg::Texture2D *texture = new osg::Texture2D();
        texture->setTextureSize(1024, 1024);
        texture->setInternalFormat(GL_DEPTH24_STENCIL8_EXT);
        osg::Image *image = new osg::Image();
        image->allocateImage(1024, 1024, 1, GL_DEPTH_STENCIL_EXT, 
GL_UNSIGNED_INT_24_8_EXT, 1);
        texture->setImage(image);
        rttCamera->attach(osg::Camera::PACKED_DEPTH_STENCIL_BUFFER, image);


The following code works, but only if I modify Texture2D.cpp


Code:
        osg::Texture2D *texture = new osg::Texture2D();
        texture->setTextureSize(1024, 1024);
        texture->setInternalFormat(GL_DEPTH24_STENCIL8_EXT);
rttCamera->attach(osg::Camera::PACKED_DEPTH_STENCIL_BUFFER, texture);


Fred

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32787#32787





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to