From 8fdf2bed62ef055b9400d4221a63ffcd6dd5cfa7 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 3 Jan 2018 13:06:56 +0000 Subject: [PATCH] Discard debug messages after starting the frame capture * This prevents us from serialising debug messages caused by the initial state preparation accidentally. --- renderdoc/driver/d3d12/d3d12_device.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoc/driver/d3d12/d3d12_device.cpp b/renderdoc/driver/d3d12/d3d12_device.cpp index 41e3567ab..548bf02c7 100644 --- a/renderdoc/driver/d3d12/d3d12_device.cpp +++ b/renderdoc/driver/d3d12/d3d12_device.cpp @@ -1282,6 +1282,9 @@ void WrappedID3D12Device::StartFrameCapture(void *dev, void *wnd) RDCDEBUG("Attempting capture"); m_FrameCaptureRecord->DeleteChunks(); + // fetch and discard debug messages so we don't serialise any messages of our own. + (void)GetDebugMessages(); + { CACHE_THREAD_SERIALISER();