Add error messages if Vulkan init failed, prevent Vulkan context freeing uninitialized device and instance.
This commit is contained in:
parent
db1eb909fe
commit
996910b627
7 changed files with 46 additions and 14 deletions
|
|
@ -53,6 +53,8 @@ class VulkanContext {
|
|||
uint32_t queue_family_count;
|
||||
VkQueueFamilyProperties *queue_props;
|
||||
VkDevice device;
|
||||
bool device_initialized = false;
|
||||
bool inst_initialized = false;
|
||||
|
||||
//present
|
||||
bool queues_initialized;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue