diff --git a/src/startup_stubs/d3d12_xs_device.cpp b/src/startup_stubs/d3d12_xs_device.cpp index 5bc626e354..e3624989a3 100644 --- a/src/startup_stubs/d3d12_xs_device.cpp +++ b/src/startup_stubs/d3d12_xs_device.cpp @@ -2272,14 +2272,14 @@ HRESULT __stdcall list_close(Wrapper* self) state.list_close_failed = FAILED(hr); state.list_close_hr = hr; state.list_close_skip_logged = false; - if (state.direct_mesh_trace_recording) - log("x2w-mesh-direct close list=%p recording=%llu hr=0x%08lx", - self, state.direct_mesh_trace_recording, static_cast(hr)); if (FAILED(hr)) { discard_upload_chunks(state.upload_chunks, upload_chunks.data(), snapshot_chunks.data()); if (const auto found = list_recordings.find(self); found != list_recordings.end() && found->second) found->second->close_failed = true; } + if (state.direct_mesh_trace_recording) + log("x2w-mesh-direct close list=%p recording=%llu hr=0x%08lx", + self, state.direct_mesh_trace_recording, static_cast(hr)); ReleaseSRWLockExclusive(&allocator_lock); InterlockedIncrement(&render_closes); if (FAILED(hr)) {