Hi Robert,

Robert Osfield wrote:
Hi J.P.,

What hardware and OS are you testing on right now?

Debian 32-bit, Nvidia driver.


On Wed, Oct 7, 2009 at 10:36 AM, J.P. Delport <jpdelp...@csir.co.za> wrote:
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.

I've just done a code review of TextureRectangle.cpp code and it looks
to be binding the PBO and setting the data pointer appropriately.  I'm
afraid I haven't yet spotted any lead of what to look into next.


Found it. Typo/copy&pasted line in PBO constructor. Target was set to wrong value and that made the bind fail. Modded file attached.

TextureRectangle now works fine in osgmovie. The world feels better :)

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.

Attachment: BufferObject.cpp.gz
Description: GNU Zip compressed data

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

Reply via email to