fix descriptor index off by 1
This commit is contained in:
parent
2f915de96c
commit
859e1c5245
@ -771,12 +771,12 @@ GPU_D12_Descriptor *GPU_D12_PushDescriptor(GPU_D12_Arena *gpu_arena, GPU_D12_Des
|
||||
}
|
||||
else
|
||||
{
|
||||
descriptor = PushStructNoZero(heap->descriptors_arena, GPU_D12_Descriptor);
|
||||
index = ArenaCount(heap->descriptors_arena, GPU_D12_Descriptor);
|
||||
if (index >= heap->max_count)
|
||||
{
|
||||
Panic(Lit("Max descriptors reached in heap"));
|
||||
}
|
||||
descriptor = PushStructNoZero(heap->descriptors_arena, GPU_D12_Descriptor);
|
||||
}
|
||||
}
|
||||
Unlock(&lock);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user