I define and set viewport using this piece of code:
D3D11_VIEWPORT viewport; viewport.Width = (FLOAT)pBspWindow->GetWidth(); viewport.Height = (FLOAT)pBspWindow->GetHeight(); viewport.TopLeftX = 0.0f; viewport.TopLeftY = 0.0f; viewport.MaxDepth = 1.0f; viewport.MinDepth = 0.0f; pD3DContext->RSSetViewports(1, &viewport);
If I remove MaxDepth/MinDepth members and run my application under debug session triangle will not be shown.
This behaviour doesn't appear under release session.
I searched on MSDN, but couldn't find anything.
I'm interested why is this happening?