Fixes for 2 compiler warnings

Closes #236
This commit is contained in:
Adam Sawicki 2022-02-14 18:17:14 +01:00
parent fd82bc7b6d
commit 0a24d5a7f3

View File

@ -6412,7 +6412,7 @@ uint32_t VmaBlockBufferImageGranularity::OffsetToPageIndex(VkDeviceSize offset)
void VmaBlockBufferImageGranularity::AllocPage(RegionInfo& page, uint8_t allocType) void VmaBlockBufferImageGranularity::AllocPage(RegionInfo& page, uint8_t allocType)
{ {
// When current alloc type is free then it can be overriden by new type // When current alloc type is free then it can be overriden by new type
if (page.allocCount == 0 || page.allocCount > 0 && page.allocType == VMA_SUBALLOCATION_TYPE_FREE) if (page.allocCount == 0 || (page.allocCount > 0 && page.allocType == VMA_SUBALLOCATION_TYPE_FREE))
page.allocType = allocType; page.allocType = allocType;
++page.allocCount; ++page.allocCount;
@ -10471,7 +10471,7 @@ public:
uint32_t GetAlgorithm() const { return m_Algorithm; } uint32_t GetAlgorithm() const { return m_Algorithm; }
bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; } bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; }
float GetPriority() const { return m_Priority; } float GetPriority() const { return m_Priority; }
void* const GetAllocationNextPtr() const { return m_pMemoryAllocateNext; } void* GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
VkResult CreateMinBlocks(); VkResult CreateMinBlocks();
void AddPoolStats(VmaPoolStats* pStats); void AddPoolStats(VmaPoolStats* pStats);