Archived

This topic is now archived and is closed to further replies.

ji yan

Sharing vertex buffer!!!

Recommended Posts

Hi to all: I have two textures that can be set to be render target, sharing the same vertex buffer and the index buffer with the backsurface. The strange thing is that when I change the shared vertex positions in the buffer for only one texture, my the other texture changed its vertex position as well! I did not use the function DrawIndexPrimitives() to apply the changes to the other texture, how come it automatically did so??? Thanks for any help!!!

Share this post


Link to post
Share on other sites
DrawIndexedPrimitives() does not apply changes. you should not be reading from vertex buffers anyway. do a lock() all stuff you need unlock() then your drawing. you are only locking once per frame right?

Share this post


Link to post
Share on other sites