diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 0d01d51..0caa75c 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -6412,7 +6412,7 @@ uint32_t VmaBlockBufferImageGranularity::OffsetToPageIndex(VkDeviceSize offset) void VmaBlockBufferImageGranularity::AllocPage(RegionInfo& page, uint8_t allocType) { // 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.allocCount; @@ -10471,7 +10471,7 @@ public: uint32_t GetAlgorithm() const { return m_Algorithm; } bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; } float GetPriority() const { return m_Priority; } - void* const GetAllocationNextPtr() const { return m_pMemoryAllocateNext; } + void* GetAllocationNextPtr() const { return m_pMemoryAllocateNext; } VkResult CreateMinBlocks(); void AddPoolStats(VmaPoolStats* pStats);