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