From cbcb145eb4d0b1a9ef2f57a837d42fef1f930b65 Mon Sep 17 00:00:00 2001 From: TheSniperFan <9803861+TheSniperFan@users.noreply.github.com> Date: Sat, 18 Oct 2025 14:36:20 +0200 Subject: [PATCH] Fix debug mode being set too late -Early error messages were always being skipped --- src/gpu/vulkan/SDL_gpu_vulkan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index 69db0bd2da..8798d1ee59 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -11774,6 +11774,9 @@ static bool VULKAN_PrepareDriver(SDL_VideoDevice *_this, SDL_PropertiesID props) renderer = (VulkanRenderer *)SDL_calloc(1, sizeof(*renderer)); if (renderer) { + // This needs to be set early for log filtering + renderer->debugMode = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_DEBUGMODE_BOOLEAN, false); + // Opt out device features (higher compatibility in exchange for reduced functionality) renderer->desiredDeviceFeatures.samplerAnisotropy = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, true) ? VK_TRUE : VK_FALSE; renderer->desiredDeviceFeatures.depthClamp = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_DEPTH_CLAMPING_BOOLEAN, true) ? VK_TRUE : VK_FALSE;