Fixed 22-windows example.

This commit is contained in:
Branimir Karadžić 2014-09-30 22:20:16 -07:00
parent 61ed393f6c
commit 1b5454bd51
2 changed files with 2 additions and 1 deletions

View File

@ -294,6 +294,7 @@ namespace entry
WindowHandle handle = { (uint16_t)_wparam }; WindowHandle handle = { (uint16_t)_wparam };
PostMessageA(m_hwnd[_wparam], WM_CLOSE, 0, 0); PostMessageA(m_hwnd[_wparam], WM_CLOSE, 0, 0);
m_eventQueue.postWindowEvent(handle); m_eventQueue.postWindowEvent(handle);
DestroyWindow(m_hwnd[_wparam]);
m_hwnd[_wparam] = 0; m_hwnd[_wparam] = 0;
} }
break; break;

View File

@ -1175,7 +1175,7 @@ RENDERDOC_IMPORT
{ {
HRESULT hr = 0; HRESULT hr = 0;
uint32_t syncInterval = !!(m_flags & BGFX_RESET_VSYNC); uint32_t syncInterval = !!(m_flags & BGFX_RESET_VSYNC);
for (uint32_t ii = 1, num = m_numWindows && SUCCEEDED(hr); ii < num; ++ii) for (uint32_t ii = 1, num = m_numWindows; ii < num && SUCCEEDED(hr); ++ii)
{ {
hr = m_frameBuffers[m_windows[ii].idx].m_swapChain->Present(syncInterval, 0); hr = m_frameBuffers[m_windows[ii].idx].m_swapChain->Present(syncInterval, 0);
} }