From a7bc6c5e08630d2f4995caf09346a59119dfb2ae Mon Sep 17 00:00:00 2001 From: zopsicle Date: Mon, 24 Feb 2025 20:03:17 +0100 Subject: [PATCH] gpu: initialize VkDebugUtilsLabelEXT::color Fixes #12383. --- src/gpu/vulkan/SDL_gpu_vulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index fbfa8c1b1a..5af4440972 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -5549,8 +5549,8 @@ static void VULKAN_InsertDebugLabel( VkDebugUtilsLabelEXT labelInfo; if (renderer->supportsDebugUtils) { + SDL_zero(labelInfo); labelInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT; - labelInfo.pNext = NULL; labelInfo.pLabelName = text; renderer->vkCmdInsertDebugUtilsLabelEXT( @@ -5568,8 +5568,8 @@ static void VULKAN_PushDebugGroup( VkDebugUtilsLabelEXT labelInfo; if (renderer->supportsDebugUtils) { + SDL_zero(labelInfo); labelInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT; - labelInfo.pNext = NULL; labelInfo.pLabelName = name; renderer->vkCmdBeginDebugUtilsLabelEXT(