Fix possible crash if throw early

This commit is contained in:
Benau 2022-07-06 10:06:28 +08:00
parent cc6914631a
commit 4351926137

View File

@ -55,6 +55,8 @@ void GEVulkanShaderManager::init(GEVulkanDriver* vk)
// ----------------------------------------------------------------------------
void GEVulkanShaderManager::destroy()
{
if (!g_vk)
return;
vkDestroyShaderModule(g_vk->getDevice(), g_2d_render_vert, NULL);
vkDestroyShaderModule(g_vk->getDevice(), g_2d_render_frag, NULL);
} // destroy