Hi
I'm having a strange issue with Map on my device context. I've implemented scene picking functionality that essentially renders the scene to a texture using a shader that, for each object, renders a unique colour. I then copy that texture to a STAGING texture whereupon I Map it, read the pixel under the mouse and check the colour map.
It usually works well and is something I used heavily in my engine when it used DX9 without issue but since I've ported it across and I'm using Map, I get a strange problem whereby after a seemingly random number of selections, the Map device context method just locks up and never breaks out.
I've got critical sections around my rendering so I'm fairly certain it's not a threading issue. Just to be sure, I've switched off rendering to any other swapchains so there's only one.
Any ideas how I may be able to find out what's happening in this call? I've switched debugging on and that doesn't give me anything.
Thanks