Add error messages if Vulkan init failed, prevent Vulkan context freeing uninitialized device and instance.

This commit is contained in:
bruvzg 2020-07-13 19:24:04 +03:00
parent db1eb909fe
commit 996910b627
No known key found for this signature in database
GPG key ID: FCED35F1CECE0D3A
7 changed files with 46 additions and 14 deletions

View file

@ -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;