Add various checks trying to avoid various crashes found in Google Play crash reports.

This commit is contained in:
Henrik Rydgård committed 2026-02-05 11:12:53 +01:00
1 parent 0c3f6afeef
commit 841e4c8564
8 files changed
+28 -8

No files matched your search

+6 -1
View File
@@ -5,7 +5,12 @@ VulkanDescSetPool::~VulkanDescSetPool() {
}
void VulkanDescSetPool::Create(VulkanContext *vulkan, const BindingType *bindingTypes, uint32_t bindingTypesCount, uint32_t descriptorCount) {
_assert_msg_(descPool_ == VK_NULL_HANDLE, "VulkanDescSetPool::Create when already exists");
// Seeing confusing crash reports of this, so reduced to a debug asserts and trying to limp along.
_dbg_assert_msg_(descPool_ == VK_NULL_HANDLE, "VulkanDescSetPool::Create when already exists");
if (descPool_) {
ERROR_LOG(Log::G3D, "VulkanDescSetPool::Create when already exists - unexpected");
descPool_ = VK_NULL_HANDLE;
}
vulkan_ = vulkan;
info_ = { VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO };