From 62abe9db5e7f3c1dae9938bea3b020b7aab164cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 25 Oct 2014 19:16:24 -0700 Subject: [PATCH] Cleanup. --- examples/common/imgui/imgui.cpp | 1 + src/renderer_d3d11.cpp | 2 ++ src/renderer_d3d9.cpp | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 704f70739..d201b141f 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -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); diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index a14e252c2..79b3e489c 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -3477,6 +3477,8 @@ RENDERDOC_IMPORT } } + PIX_ENDEVENT(); + int64_t now = bx::getHPCounter(); elapsed += now; diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index d0e7b2548..34040971f 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -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;