From 70a3919f9f293aed2ad443a91af47cbbcfb1b8de Mon Sep 17 00:00:00 2001 From: Triang3l Date: Tue, 8 Jun 2021 21:28:30 +0300 Subject: [PATCH] [D3D12] Primitive processor frame_index_buffers_.clear() in shutdown for safety --- src/xenia/gpu/d3d12/d3d12_primitive_processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/gpu/d3d12/d3d12_primitive_processor.cc b/src/xenia/gpu/d3d12/d3d12_primitive_processor.cc index 1c008e048..c93275b95 100644 --- a/src/xenia/gpu/d3d12/d3d12_primitive_processor.cc +++ b/src/xenia/gpu/d3d12/d3d12_primitive_processor.cc @@ -40,6 +40,7 @@ bool D3D12PrimitiveProcessor::Initialize() { } void D3D12PrimitiveProcessor::Shutdown(bool from_destructor) { + frame_index_buffers_.clear(); frame_index_buffer_pool_.reset(); builtin_index_buffer_upload_.Reset(); builtin_index_buffer_gpu_address_ = 0;