Fixed 22-windows example.
This commit is contained in:
parent
61ed393f6c
commit
1b5454bd51
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user