Skip to content

Commit

Permalink
Merge pull request #45 from Abhinavpatel00/patch-1
Browse files Browse the repository at this point in the history
fixes a vulkan validation error , VUID-vkDestroyInstance-instance-00629
  • Loading branch information
zeux authored Feb 16, 2025
2 parents 6f5d393 + abc8597 commit c824ce5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/niagara.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ int main(int argc, const char** argv)
VkPhysicalDevice physicalDevice = pickPhysicalDevice(physicalDevices, physicalDeviceCount);
if (!physicalDevice)
{
if (debugCallback)
vkDestroyDebugReportCallbackEXT(instance, debugCallback, 0);
vkDestroyInstance(instance, 0);
return -1;
}
Expand Down

0 comments on commit c824ce5

Please sign in to comment.