| 96 | } |
| 97 | |
| 98 | void ExtDebugReportOnDestroy(VkInstance instance) |
| 99 | { |
| 100 | // It should happen after destroing device, before destroying instance. |
| 101 | if (g_DebugReportCallback) |
| 102 | { |
| 103 | g_vkDestroyDebugReportCallbackEXT(instance, g_DebugReportCallback, nullptr); |
| 104 | g_DebugReportCallback = nullptr; |
| 105 | } |
| 106 | } |
| 107 | } |