From 2a5c419d3835acb72b5c559108cb23ba62f0bc9b Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sun, 23 Apr 2023 21:56:48 +0200 Subject: [PATCH] Cleanup d3d12_heap_descriptor_alloc --- gfx/common/d3d12_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gfx/common/d3d12_common.c b/gfx/common/d3d12_common.c index 2022cd2032..e271c39d57 100644 --- a/gfx/common/d3d12_common.c +++ b/gfx/common/d3d12_common.c @@ -204,10 +204,9 @@ D3D12_CPU_DESCRIPTOR_HANDLE d3d12_descriptor_heap_slot_alloc(d3d12_descriptor_he heap->map[i] = true; handle.ptr = heap->cpu.ptr + i * heap->stride; heap->start = i + 1; - return handle; + break; } } - /* if you get here try increasing NumDescriptors for this heap */ return handle; }