From 8406c9cc72cc0b9743b21c9b32fe3014345b88d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 9 May 2017 23:03:03 -0700 Subject: [PATCH] D3D12: Fixed blit. --- src/renderer_d3d12.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index dcc651e14..d7d9a199d 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -540,6 +540,7 @@ namespace bgfx { namespace d3d12 LUID luid; m_renderdocdll = loadRenderDoc(); + setGraphicsDebuggerPresent(NULL != m_renderdocdll); m_fbh.idx = invalidHandle; bx::memSet(m_uniforms, 0, sizeof(m_uniforms) ); @@ -5550,9 +5551,10 @@ data.NumQualityLevels = 0; } } - submitBlit(bs, BGFX_CONFIG_MAX_VIEWS); - m_batch.end(m_commandList); + kick(); + + submitBlit(bs, BGFX_CONFIG_MAX_VIEWS); } int64_t now = bx::getHPCounter();