Browse files

Add another assert, which gets hit.. Hm. Something is wrong..

  • Loading branch information...
hrydgard committed Dec 3, 2017
1 parent ff264ef commit 5d53f5e24cbdc70ff3e9b59b7917fd85b6d3de1a
Showing with 2 additions and 0 deletions.
  1. +2 −0 Common/Vulkan/VulkanMemory.cpp
@@ -278,6 +278,8 @@ bool VulkanDeviceAllocator::AllocateFromSlab(Slab &slab, size_t &start, size_t b
void VulkanDeviceAllocator::Free(VkDeviceMemory deviceMemory, size_t offset) {
_assert_msg_(G3D, !slabs_.empty(), "No slabs - can't be anything to free! double-freed?");
// First, let's validate. This will allow stack traces to tell us when frees are bad.
size_t start = offset >> SLAB_GRAIN_SHIFT;
bool found = false;

0 comments on commit 5d53f5e

Please sign in to comment.