mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
commit
1bca8a29ac
3 changed files with 7 additions and 28 deletions
|
@ -530,7 +530,7 @@ namespace entry
|
|||
, msg->m_y
|
||||
, msg->m_width
|
||||
, msg->m_height
|
||||
, m_hwnd[0]
|
||||
, NULL
|
||||
, NULL
|
||||
, (HINSTANCE)GetModuleHandle(NULL)
|
||||
, 0
|
||||
|
@ -914,33 +914,6 @@ namespace entry
|
|||
top = newrect.top +(newrect.bottom-newrect.top-height)/2;
|
||||
}
|
||||
|
||||
HWND parent = GetWindow(_hwnd, GW_OWNER);
|
||||
if (NULL != parent)
|
||||
{
|
||||
if (_windowFrame)
|
||||
{
|
||||
SetWindowPos(parent
|
||||
, HWND_TOP
|
||||
, -32000
|
||||
, -32000
|
||||
, 0
|
||||
, 0
|
||||
, SWP_SHOWWINDOW
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetWindowPos(parent
|
||||
, HWND_TOP
|
||||
, newrect.left
|
||||
, newrect.top
|
||||
, newrect.right-newrect.left
|
||||
, newrect.bottom-newrect.top
|
||||
, SWP_SHOWWINDOW
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
SetWindowPos(_hwnd
|
||||
, HWND_TOP
|
||||
, left
|
||||
|
|
|
@ -1453,6 +1453,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||
|
||||
invalidateCache();
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(m_frameBuffers); ++ii)
|
||||
{
|
||||
m_frameBuffers[ii].destroy();
|
||||
}
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(m_indexBuffers); ++ii)
|
||||
{
|
||||
m_indexBuffers[ii].destroy();
|
||||
|
|
|
@ -248,6 +248,7 @@ namespace bgfx { namespace d3d11
|
|||
{
|
||||
FrameBufferD3D11()
|
||||
: m_dsv(NULL)
|
||||
, m_swapChain(NULL)
|
||||
, m_width(0)
|
||||
, m_height(0)
|
||||
, m_denseIdx(UINT16_MAX)
|
||||
|
|
Loading…
Reference in a new issue