(Vulkan) return early/error out if no context driver is found

This commit is contained in:
twinaphex 2020-06-30 01:33:19 +02:00
parent 9474f6b299
commit 120afe5d21

View File

@ -1237,6 +1237,12 @@ static void *vulkan_init(const video_info_t *video,
RARCH_LOG("[Vulkan]: Using resolution %ux%u\n", temp_width, temp_height);
if (!vk->ctx_driver || !vk->ctx_driver->get_context_data)
{
RARCH_ERR("[Vulkan]: Failed to get context data.\n");
goto error;
}
*(void**)&vk->context = vk->ctx_driver->get_context_data(vk->ctx_data);
vk->vsync = video->vsync;