diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-31 14:30:22 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-31 14:31:31 +0200 |
commit | 5920bc32c31830d643ee4e108b8c2a5b8b6f77f7 (patch) | |
tree | c6e4336d08cd5e5663b8aea0110138e8c50b5960 | |
parent | 20d46c5b9ede7bfb9001d341ac20d8a30f49cba5 (diff) |
Print the Vulkan device name in release builds too
This is important information to include in bug reports for exported
projects, and is consistent with the behavior found in the GLES3 and
GLES2 renderers in `3.x`.
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index d35c519320..ab43fd6c31 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -757,9 +757,9 @@ Error VulkanContext::_create_physical_device() { vendor_idx++; } } -#ifdef DEBUG_ENABLED + print_line("Using Vulkan Device #" + itos(device_index) + ": " + device_vendor + " - " + device_name); -#endif + device_api_version = gpu_props.apiVersion; err = vkEnumerateDeviceExtensionProperties(gpu, nullptr, &device_extension_count, nullptr); |