mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add another assert, which gets hit.. Hm. Something is wrong..
This commit is contained in:
parent
ff264efe7e
commit
5d53f5e24c
1 changed files with 2 additions and 0 deletions
|
@ -278,6 +278,8 @@ bool VulkanDeviceAllocator::AllocateFromSlab(Slab &slab, size_t &start, size_t b
|
||||||
void VulkanDeviceAllocator::Free(VkDeviceMemory deviceMemory, size_t offset) {
|
void VulkanDeviceAllocator::Free(VkDeviceMemory deviceMemory, size_t offset) {
|
||||||
assert(!destroyed_);
|
assert(!destroyed_);
|
||||||
|
|
||||||
|
_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.
|
// First, let's validate. This will allow stack traces to tell us when frees are bad.
|
||||||
size_t start = offset >> SLAB_GRAIN_SHIFT;
|
size_t start = offset >> SLAB_GRAIN_SHIFT;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue