mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-07 09:57:49 +00:00
(Vulkan) return early/error out if no context driver is found
This commit is contained in:
parent
9474f6b299
commit
120afe5d21
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user