Commit df1dfc1f authored by chili's avatar chili
Browse files

imgui dx11 impl shutdown

parent 18dd6edb
...@@ -114,6 +114,11 @@ Graphics::Graphics( HWND hWnd ) ...@@ -114,6 +114,11 @@ Graphics::Graphics( HWND hWnd )
ImGui_ImplDX11_Init( pDevice.Get(),pContext.Get() ); ImGui_ImplDX11_Init( pDevice.Get(),pContext.Get() );
} }
Graphics::~Graphics()
{
ImGui_ImplDX11_Shutdown();
}
void Graphics::EndFrame() void Graphics::EndFrame()
{ {
// imgui frame end // imgui frame end
......
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
Graphics( HWND hWnd ); Graphics( HWND hWnd );
Graphics( const Graphics& ) = delete; Graphics( const Graphics& ) = delete;
Graphics& operator=( const Graphics& ) = delete; Graphics& operator=( const Graphics& ) = delete;
~Graphics() = default; ~Graphics();
void EndFrame(); void EndFrame();
void BeginFrame( float red,float green,float blue ) noexcept; void BeginFrame( float red,float green,float blue ) noexcept;
void DrawIndexed( UINT count ) noexcept(!IS_DEBUG); void DrawIndexed( UINT count ) noexcept(!IS_DEBUG);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment