Application/Application.cpp
//--------------------------------------------------------------------------------------
// Clean up the objects we've created
//--------------------------------------------------------------------------------------
Clean up the objects we've created
Clean up the objects we ' ve created
void Application::CleanupDevice()
{
	if (m_pImmediateContext) m_pImmediateContext->ClearState();
	if (g_pRasterState)		g_pRasterState->Release();
	if (g_pDepthStencil) g_pDepthStencil->Release(); to get rid of depth stuff
	if (g_pDepthStencilView) g_pDepthStencilView->Release();
	DESTROY(m_pRenderTargetView);
	DESTROY(m_pSwapChain1);
	DESTROY(m_pSwapChain);
	DESTROY(m_pImmediateContext1);
	DESTROY(m_pImmediateContext);
	DESTROY(m_pd3dDevice1);
	DESTROY(m_pd3dDevice);
}
void Application :: CleanupDevice ( ) { if ( m_pImmediateContext ) m_pImmediateContext -> ClearState ( ) ; if ( g_pRasterState ) g_pRasterState -> Release ( ) ; if ( g_pDepthStencil ) g_pDepthStencil -> Release ( ) ; if ( g_pDepthStencilView ) g_pDepthStencilView -> Release ( ) ; DESTROY ( m_pRenderTargetView ) ; DESTROY ( m_pSwapChain1 ) ; DESTROY ( m_pSwapChain ) ; DESTROY ( m_pImmediateContext1 ) ; DESTROY ( m_pImmediateContext ) ; DESTROY ( m_pd3dDevice1 ) ; DESTROY ( m_pd3dDevice ) ; }
Clean up the objects we've created
Clean up the objects we ' ve created
//Tidy up all DirectX stuff //SS //SS to get rid of depth stuff //SS