FNA-XNA / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
267 stars 44 forks source link

Fix changing swapchain format when flip model is enabled #195

Closed kg closed 5 months ago

kg commented 5 months ago

Changing backbuffer format with flip model enabled causes a crash right now.

Exception thrown at 0x00007FFD3C4D567C in HeavenLens.exe: Microsoft C++ exception: _com_error at memory location 0x000000AAA6BFD660.

DXGI ERROR: IDXGIFactory::CreateSwapChain: Only one flip model swap chain can be associate with an HWND, IWindow, or composition surface at a time. ClearState() and Flush() may need to be called on the D3D11 device context to trigger deferred destruction of old swapchains. [ MISCELLANEOUS ERROR #297: ]