Open qzhan15 opened 8 years ago
Actually, the problem occurs because you cannot use multi-sampling with DXGI_SWAP_EFFECT_FLIP_DISCARD.
I wrote GHagi's code and I've changed DXGI_SWAP_EFFECT_FLIP_DISCARD for anothers. The error continue.
Actually, according to https://github.com/Microsoft/DirectXTK12/wiki/Simple-rendering#Multisampling (Look at the technical note at the end of the page), MSAA is supported for DXGI_SWAP_EFFECT_DISCARD, not FLIP_DISCARD.
With DXGI_SWAP_EFFECT_FLIP_DISCARD, you have to use another way (explained in the link I gave).
Has anyone implemented the code changes recommended by Drayan? I'm getting the same crash with the latest code.
at below code at begin of D3DApp::CreateSwapChain will solve this issue
for (int i = 0; i < SwapChainBufferCount; ++i) mSwapChainBuffer[i].Reset();