I recently stumbled over a problem with my render-to-texture mechanism. I was setting
d3d11DevCon->OMSetRenderTargets(1, &renderTargetView, 0);, what obviously will let me render to the renderTargetView, but without using a depthStencilView.
Now, when I try to pass my depthStencilView as the last parameter, nothing gets drawn anymore. Is there a specific parameter I have to set in the depthStencilView to allow it to be used when I draw to a texture?
Again, without the depthStencilView it works fine, but of course without depth.
If you need some more code on how I initialise stuff, let me know.
Thank you very much!