Updated README.

This commit is contained in:
Branimir Karadžić
2014-09-27 14:15:56 -07:00
parent 58b37542c8
commit d35c14164b
2 changed files with 26 additions and 3 deletions

View File

@@ -533,6 +533,19 @@ namespace bgfx
m_fmtDepth = D3DFMT_D24FS8;
#endif // BX_PLATFORM_WINDOWS
{
IDirect3DSwapChain9* swapChain;
DX_CHECK(m_device->GetSwapChain(0, &swapChain) );
// GPA increases swapchain ref count.
//
// This causes assert in debug. When debugger is present refcount
// checks are off.
setGraphicsDebuggerPresent(1 != getRefCount(swapChain) );
DX_RELEASE(swapChain, 0);
}
postReset();
m_initialized = true;