Hi Robert,

Robert Osfield wrote:
Hi J.P,

On Wed, Oct 7, 2009 at 7:59 AM, J.P. Delport <[email protected]> wrote:
Debug build still did not provide a nice backtrace, but I've followed the
crash to

void TextureRectangle::applyTexImage_subload in TextureRectangle.cpp

At the line:

dataPtr = reinterpret_cast<unsigned
char*>(pbo->getOffset(image->getBufferIndex()));

dataPtr gets assigned 0 and then the glTexSubImage2D call generates the
segfault.

It's normal for pbo->getOffset() to return a 0, and correct to pass
this to glTexSubImage2D, but only if a PBO is bound, if it isn't then
it will result in a seg fault.  Perhaps there is some mistake in the
code that isn't binding the PBO when it should.

OK, I'll try to check this too.


Do you get a crash if you use the --texture2D on the osgmovie command line?

No, it runs, but with

Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,)

after every frame.

jp


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

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