Skip to content

Commit 289e424

Browse files
committed
PR reviews
1 parent 190067a commit 289e424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/video/alloc/SubAllocatedDescriptorSet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SubAllocatedDescriptorSet : public core::IReferenceCounted
3535
std::recursive_mutex stAccessVerfier;
3636
#endif // _NBL_DEBUG
3737

38-
constexpr static inline uint32_t MaxDescriptorSetAllocationAlignment = 64u*1024u; // if you need larger alignments then you're not right in the head
38+
constexpr static inline uint32_t MaxDescriptorSetAllocationAlignment = 1u;
3939
constexpr static inline uint32_t MinDescriptorSetAllocationSize = 1u;
4040

4141
public:
@@ -83,7 +83,7 @@ class SubAllocatedDescriptorSet : public core::IReferenceCounted
8383
if (range.reservedSize == 0)
8484
continue;
8585
auto ptr = reinterpret_cast<const uint8_t*>(core::address_allocator_traits<AddressAllocator>::getReservedSpacePtr(*range.addressAllocator));
86-
range.addressAllocator->~PoolAddressAllocator();
86+
range.addressAllocator = nullptr;
8787
range.reservedAllocator->deallocate(const_cast<uint8_t*>(ptr), range.reservedSize);
8888
}
8989
}

0 commit comments

Comments
 (0)