diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index 27d70a00cc..5df42b72d5 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -1054,6 +1054,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk, VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdSetScissor); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdSetViewport); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdBindPipeline); + VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateRenderPass); if (vk->context.fp.vkEnumeratePhysicalDevices(vk->context.instance, &gpu_count, NULL) != VK_SUCCESS) diff --git a/gfx/common/vulkan_common.h b/gfx/common/vulkan_common.h index bfd50f718d..7a7935db2f 100644 --- a/gfx/common/vulkan_common.h +++ b/gfx/common/vulkan_common.h @@ -139,6 +139,7 @@ typedef struct vulkan_context PFN_vkCreateSemaphore vkCreateSemaphore; PFN_vkGetDeviceQueue vkGetDeviceQueue; PFN_vkCreateInstance vkCreateInstance; + PFN_vkCreateRenderPass vkCreateRenderPass; PFN_vkEnumeratePhysicalDevices vkEnumeratePhysicalDevices; PFN_vkGetPhysicalDeviceProperties vkGetPhysicalDeviceProperties; PFN_vkGetPhysicalDeviceMemoryProperties vkGetPhysicalDeviceMemoryProperties; diff --git a/gfx/drivers/vulkan.c b/gfx/drivers/vulkan.c index 9347bf234c..0ebdd1822e 100644 --- a/gfx/drivers/vulkan.c +++ b/gfx/drivers/vulkan.c @@ -108,7 +108,7 @@ static void vulkan_init_render_pass(vk_t *vk) rp_info.subpassCount = 1; rp_info.pSubpasses = &subpass; - vkCreateRenderPass(vk->context->device, + vk->context->fp.vkCreateRenderPass(vk->context->device, &rp_info, NULL, &vk->render_pass); }