mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-13 09:12:38 +01:00
Examples: Win32+DirectX12: Fixed ExampleDescriptorHeapAllocator overflow free index.
Amend 40b2286d1.
This commit is contained in:
parent
6916f935eb
commit
3d900edba7
@ -54,7 +54,7 @@ struct ExampleDescriptorHeapAllocator
|
||||
HeapHandleIncrement = device->GetDescriptorHandleIncrementSize(HeapType);
|
||||
FreeIndices.reserve((int)desc.NumDescriptors);
|
||||
for (int n = desc.NumDescriptors; n > 0; n--)
|
||||
FreeIndices.push_back(n);
|
||||
FreeIndices.push_back(n - 1);
|
||||
}
|
||||
void Destroy()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user