mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-06 14:25:39 +00:00
D3D12HostDisplay: Fix debug violation in DestroyRenderSurface()
This commit is contained in:
parent
eb5a2a340c
commit
5fa07999e7
|
@ -458,6 +458,9 @@ bool D3D12HostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
|
||||||
|
|
||||||
void D3D12HostDisplay::DestroyRenderSurface()
|
void D3D12HostDisplay::DestroyRenderSurface()
|
||||||
{
|
{
|
||||||
|
// For some reason if we don't execute the command list here, the swap chain is in use.. not sure where.
|
||||||
|
g_d3d12_context->ExecuteCommandList(true);
|
||||||
|
|
||||||
if (IsFullscreen())
|
if (IsFullscreen())
|
||||||
SetFullscreen(false, 0, 0, 0.0f);
|
SetFullscreen(false, 0, 0, 0.0f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue