Skip to content

Commit

Permalink
Examples: DirectX12: Fixed shutdown issue. (ocornut#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Feb 22, 2018
1 parent 9be7d04 commit 7e24ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/directx12_example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ int main(int, char**)
g_pd3dCommandList->ResourceBarrier(1, &barrier);
g_pd3dCommandList->Close();

g_pd3dCommandQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*) &g_pd3dCommandList);
g_pd3dCommandQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*)&g_pd3dCommandList);

g_pSwapChain->Present(1, 0); // Present with vsync
//g_pSwapChain->Present(0, 0); // Present without vsync
Expand All @@ -407,9 +407,9 @@ int main(int, char**)
frameCtxt->FenceValue = fenceValue;
}

WaitForLastSubmittedFrame();
ImGui_ImplDX12_Shutdown();
ImGui::DestroyContext();

CleanupDeviceD3D();
UnregisterClass(_T("ImGui Example"), wc.hInstance);

Expand Down

0 comments on commit 7e24ce0

Please sign in to comment.