Permit the DirectX Debug Runtime on strict error reporting to pass an early issue releasing D3DDevice surfaces

This commit is contained in:
Echelon9 2014-04-05 23:19:36 +11:00
parent ce0e2e00ed
commit aee7e41ff1
1 changed files with 5 additions and 1 deletions

View File

@ -721,7 +721,11 @@ static DWORD WINAPI EmuCreateDeviceProxy(LPVOID)
g_pD3DDevice8->EndScene();
while(g_pD3DDevice8->Release() != 0);
// Address DirectX Debug Runtime reported error in _DEBUG builds
// Direct3D8: (ERROR) :Not all objects were freed: the following indicate the types of unfreed objects.
#ifndef _DEBUG
while(g_pD3DDevice8->Release() != 0);
#endif
g_pD3DDevice8 = 0;
}