mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-06 09:05:29 +00:00
Cleanup.
This commit is contained in:
@@ -3858,12 +3858,6 @@ namespace bgfx { namespace d3d9
|
||||
view = key.m_view;
|
||||
currentProgram = BGFX_INVALID_HANDLE;
|
||||
|
||||
if (_render->m_view[view].m_fbh.idx != fbh.idx)
|
||||
{
|
||||
fbh = _render->m_view[view].m_fbh;
|
||||
setFrameBuffer(fbh);
|
||||
}
|
||||
|
||||
if (item > 0)
|
||||
{
|
||||
profiler.end();
|
||||
@@ -3874,6 +3868,12 @@ namespace bgfx { namespace d3d9
|
||||
|
||||
profiler.begin(view);
|
||||
|
||||
if (_render->m_view[view].m_fbh.idx != fbh.idx)
|
||||
{
|
||||
fbh = _render->m_view[view].m_fbh;
|
||||
setFrameBuffer(fbh);
|
||||
}
|
||||
|
||||
viewState.m_rect = _render->m_view[view].m_rect;
|
||||
const Rect& scissorRect = _render->m_view[view].m_scissor;
|
||||
viewHasScissor = !scissorRect.isZero();
|
||||
|
||||
Reference in New Issue
Block a user