Commit af3a97d9 authored by Gargaj's avatar Gargaj
Browse files

fix shutdown typo

parent a7542998
...@@ -794,7 +794,7 @@ namespace Renderer ...@@ -794,7 +794,7 @@ namespace Renderer
if (pContext) pContext->Release(); if (pContext) pContext->Release();
if (pSwapChain) pSwapChain->Release(); if (pSwapChain) pSwapChain->Release();
if (pDevice) pDevice->Release(); if (pDevice) pDevice->Release();
if (!hWnd) if (hWnd)
{ {
DestroyWindow(hWnd); DestroyWindow(hWnd);
UnregisterClass(_T("fwzwnd"),GetModuleHandle(NULL)); UnregisterClass(_T("fwzwnd"),GetModuleHandle(NULL));
......
...@@ -556,7 +556,7 @@ namespace Renderer ...@@ -556,7 +556,7 @@ namespace Renderer
if (theShader) theShader->Release(); if (theShader) theShader->Release();
if (pDevice) pDevice->Release(); if (pDevice) pDevice->Release();
if (pD3D) pD3D->Release(); if (pD3D) pD3D->Release();
if (!hWnd) if (hWnd)
{ {
DestroyWindow(hWnd); DestroyWindow(hWnd);
UnregisterClass(_T("fwzwnd"),GetModuleHandle(NULL)); UnregisterClass(_T("fwzwnd"),GetModuleHandle(NULL));
......
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