summaryrefslogtreecommitdiff
path: root/platform/android/vulkan/vulkan_context_android.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-10-27 16:00:15 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-10-27 16:19:15 +0100
commit54e6338c9bf87719908b173ab9023c7b56a9df6a (patch)
tree864ab04fafc99f1548dc562acb715256055a2b7b /platform/android/vulkan/vulkan_context_android.cpp
parent67f64ef4fe61d0c9c8f46804448fcf1196cae525 (diff)
Vulkan: Make validation layers optional
They're now disabled by default, and can be enabled with the command line argument `--vk-layers`. When enabled, the errors about them being missing are now warnings, as users were confused and thought this meant Vulkan is broken for them. Fix crash in `~VulkanContext` when validation layers are disabled (exposed by this PR since before they could not be disabled without source modification). Also moved VulkanContext member initializations to header. Fixes #37102.
Diffstat (limited to 'platform/android/vulkan/vulkan_context_android.cpp')
-rw-r--r--platform/android/vulkan/vulkan_context_android.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/vulkan/vulkan_context_android.cpp b/platform/android/vulkan/vulkan_context_android.cpp
index 5fb7a83da4..56ef99dfc7 100644
--- a/platform/android/vulkan/vulkan_context_android.cpp
+++ b/platform/android/vulkan/vulkan_context_android.cpp
@@ -29,6 +29,7 @@
/*************************************************************************/
#include "vulkan_context_android.h"
+
#include <vulkan/vulkan_android.h>
const char *VulkanContextAndroid::_get_platform_surface_extension() const {