mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Cleanup.
This commit is contained in:
parent
208a348ab2
commit
62abe9db5e
3 changed files with 5 additions and 2 deletions
|
@ -773,6 +773,7 @@ struct Imgui
|
|||
m_view = _view;
|
||||
m_viewWidth = _width;
|
||||
m_viewHeight = _height;
|
||||
bgfx::setViewName(_view, "IMGUI");
|
||||
bgfx::setViewSeq(_view, true);
|
||||
bgfx::setViewRect(_view, 0, 0, _width, _height);
|
||||
|
||||
|
|
|
@ -3477,6 +3477,8 @@ RENDERDOC_IMPORT
|
|||
}
|
||||
}
|
||||
|
||||
PIX_ENDEVENT();
|
||||
|
||||
int64_t now = bx::getHPCounter();
|
||||
elapsed += now;
|
||||
|
||||
|
|
|
@ -3437,8 +3437,6 @@ namespace bgfx
|
|||
}
|
||||
}
|
||||
|
||||
PIX_ENDEVENT();
|
||||
|
||||
if (0 < _render->m_num)
|
||||
{
|
||||
captureElapsed = -bx::getHPCounter();
|
||||
|
@ -3447,6 +3445,8 @@ namespace bgfx
|
|||
}
|
||||
}
|
||||
|
||||
PIX_ENDEVENT();
|
||||
|
||||
int64_t now = bx::getHPCounter();
|
||||
elapsed += now;
|
||||
|
||||
|
|
Loading…
Reference in a new issue