From e63bfbabf069f8d0c0663ca2b82a3c26f2064340 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 24 May 2026 11:11:12 +0800 Subject: [PATCH] [Chore] (MG_Backend/DirectVulkan): enable vulkan validation layer only on DEBUG log level --- MobileGL/MG_Backend/DirectVulkan/VulkanRendererConfig.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MobileGL/MG_Backend/DirectVulkan/VulkanRendererConfig.h b/MobileGL/MG_Backend/DirectVulkan/VulkanRendererConfig.h index 5e58bd3c..5e0d5520 100644 --- a/MobileGL/MG_Backend/DirectVulkan/VulkanRendererConfig.h +++ b/MobileGL/MG_Backend/DirectVulkan/VulkanRendererConfig.h @@ -15,10 +15,10 @@ namespace MobileGL::MG_Backend::DirectVulkan { String AppName = "MobileGL-VulkanRenderer"; MobileGL::Version Version = MG_Config::CoreVersion; Uint64 CacheVersion = MG_Config::CacheVersion; -#if defined(__ANDROID__) - Bool EnableValidationLayers = false; -#else +#if MOBILEGL_LOG_ACTIVE_LEVEL <= MOBILEGL_LOG_LEVEL_DEBUG Bool EnableValidationLayers = true; +#else + Bool EnableValidationLayers = false; #endif }; } // namespace MobileGL::MG_Backend::DirectVulkan