Fix possible crash if throw early
This commit is contained in:
parent
cc6914631a
commit
4351926137
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user