mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-19 01:12:33 +00:00
Vulkan: Fix shader module leak.
This commit is contained in:
parent
de36f572d1
commit
972a5db7ae
@ -57,16 +57,16 @@ static VKAPI_ATTR VkBool32 VKAPI_CALL vulkan_debug_cb(
|
||||
RARCH_ERR("[Vulkan]: Error: %s: %s\n",
|
||||
pLayerPrefix, pMessage);
|
||||
}
|
||||
else if (flags & VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT)
|
||||
{
|
||||
RARCH_WARN("[Vulkan]: Perforamnce warning: %s: %s\n",
|
||||
pLayerPrefix, pMessage);
|
||||
}
|
||||
else if (flags & VK_DEBUG_REPORT_WARNING_BIT_EXT)
|
||||
{
|
||||
RARCH_WARN("[Vulkan]: Warning: %s: %s\n",
|
||||
pLayerPrefix, pMessage);
|
||||
}
|
||||
else if (flags & VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT)
|
||||
{
|
||||
RARCH_LOG("[Vulkan]: Performance warning: %s: %s\n",
|
||||
pLayerPrefix, pMessage);
|
||||
}
|
||||
else
|
||||
{
|
||||
RARCH_LOG("[Vulkan]: Information: %s: %s\n",
|
||||
|
@ -407,6 +407,9 @@ static void vulkan_init_pipelines(
|
||||
|
||||
VKFUNC(vkCreateGraphicsPipelines)(vk->context->device, vk->pipelines.cache,
|
||||
1, &pipe, NULL, &vk->display.pipelines[4 + i]);
|
||||
|
||||
VKFUNC(vkDestroyShaderModule)(vk->context->device, shader_stages[0].module, NULL);
|
||||
VKFUNC(vkDestroyShaderModule)(vk->context->device, shader_stages[1].module, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user