I'm trying to figure out the correct way to notify Texture2D that I've 
modified the raw bytes of its underlying Image (previous set via setImage)

I'm modifying the image data using image->data(), and then calling 
image->dirty() once modifications are complete. I can see this changes the 
'modificationCount' of base-class BufferData, and if I write the image out 
to disk, it contains the changes. So, the image is being modified correctly.

However, the Texture2D doesn't seem to to schedule a glTexSubImage2D (or 
similar ) on the next draw. What I'd be expecting is that Texture2D sees 
that the image modification count has changed, and uploads the new data.

I tried to find other similar places in the code - eg the VncPlugin just 
calls 'dirty' on its Image as far as I can see. 

What else can I check to debug this?


-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/7d933227-d014-4afd-a445-c7854d5cda26%40googlegroups.com.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to