<div dir="ltr">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)<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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. </div><div><br></div><div>What else can I check to debug this?</div><div><br></div><div><br></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/7d933227-d014-4afd-a445-c7854d5cda26%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/7d933227-d014-4afd-a445-c7854d5cda26%40googlegroups.com</a>.<br />