Skip to content

Commit 7116470

Browse files
committed
Fixed build error
1 parent 0099cff commit 7116470

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/vsg/vk/Device.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@ VkDeviceSize Device::availableMemory(bool includeMemoryPools) const
236236
for (auto& heapIndex : compatibleHeaps)
237237
{
238238
VkDeviceSize heapAvailable = memoryBudget.heapBudget[heapIndex] - memoryBudget.heapUsage[heapIndex];
239-
if (heapAvailable > minimumMargin)
240-
{
241-
available += heapAvailable;
242-
}
239+
available += heapAvailable;
243240
}
244241

245242
if (includeMemoryPools)

0 commit comments

Comments
 (0)