mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-31 08:57:50 +00:00
Fix in VmaBlockMetadata_Linear::CreateAllocationRequest for too large allocations
Fixes #396 - thanks @dm-tesla
This commit is contained in:
parent
9b7687761a
commit
f1ab507d00
2 changed files with 12 additions and 0 deletions
|
@ -7808,6 +7808,10 @@ bool VmaBlockMetadata_Linear::CreateAllocationRequest(
|
|||
VMA_ASSERT(allocType != VMA_SUBALLOCATION_TYPE_FREE);
|
||||
VMA_ASSERT(pAllocationRequest != VMA_NULL);
|
||||
VMA_HEAVY_ASSERT(Validate());
|
||||
|
||||
if(allocSize > GetSize())
|
||||
return false;
|
||||
|
||||
pAllocationRequest->size = allocSize;
|
||||
return upperAddress ?
|
||||
CreateAllocationRequest_UpperAddress(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue