diff options
| author | 2020-02-01 02:16:54 +0000 | |
|---|---|---|
| committer | 2020-02-01 02:16:54 +0000 | |
| commit | 7df4f2f48ef5fd145f2e4f2675a1c8e742be38f9 (patch) | |
| tree | c6cc59c538f42e68c25666fae4551a6fc360b9b2 /vulkan/libvulkan/api.cpp | |
| parent | 3190f2190b969046dd20e218d5114a571341f25a (diff) | |
| parent | fe62271bc355a6989a3e093bd39afb7b2e249054 (diff) | |
Snap for 6174161 from fe62271bc355a6989a3e093bd39afb7b2e249054 to qt-qpr3-release
Change-Id: Ia3f278bdbab721b963912157e5758d16a6305bf5
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
| -rw-r--r-- | vulkan/libvulkan/api.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vulkan/libvulkan/api.cpp b/vulkan/libvulkan/api.cpp index 71048db920..dd9efd3e17 100644 --- a/vulkan/libvulkan/api.cpp +++ b/vulkan/libvulkan/api.cpp @@ -124,7 +124,8 @@ class OverrideLayerNames { }; void AddImplicitLayers() { - if (!is_instance_ || !driver::Debuggable()) + if (!is_instance_ || + !android::GraphicsEnv::getInstance().isDebuggable()) return; GetLayersFromSettings(); @@ -370,7 +371,8 @@ class OverrideExtensionNames { private: bool EnableDebugCallback() const { - return (is_instance_ && driver::Debuggable() && + return (is_instance_ && + android::GraphicsEnv::getInstance().isDebuggable() && property_get_bool("debug.vulkan.enable_callback", false)); } |