[D3D12] Primitive processor frame_index_buffers_.clear() in shutdown for safety

This commit is contained in:
Triang3l 2021-06-08 21:28:30 +03:00
parent 796eb0f430
commit 70a3919f9f
1 changed files with 1 additions and 0 deletions

View File

@ -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;