mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-26 22:00:55 +00:00
Merge pull request #16 from devnexen/volkloadinstance_postpone
QVk_Init: Load instance data only on success.
This commit is contained in:
commit
bfd5659abc
1 changed files with 1 additions and 1 deletions
|
@ -1824,13 +1824,13 @@ qboolean QVk_Init(void)
|
|||
VkResult res = vkCreateInstance(&createInfo, NULL, &vk_instance);
|
||||
free(wantedExtensions);
|
||||
|
||||
volkLoadInstance(vk_instance);
|
||||
|
||||
if (res != VK_SUCCESS)
|
||||
{
|
||||
R_Printf(PRINT_ALL, "%s(): Could not create Vulkan instance: %s\n", __func__, QVk_GetError(res));
|
||||
return false;
|
||||
}
|
||||
volkLoadInstance(vk_instance);
|
||||
R_Printf(PRINT_ALL, "...created Vulkan instance\n");
|
||||
|
||||
if (vk_validation->value)
|
||||
|
|
Loading…
Reference in a new issue