From 31a5f3b8335fca088a8f182f323b8d9a236fb5d3 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 31 Aug 2024 14:16:58 +0200
Subject: [PATCH] Fix C4090: 'function': different 'const' qualifiers
---
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 eb0a11d6ced48..07d5750a128c4 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -11023,7 +11023,7 @@ static Uint8 VULKAN_INTERNAL_CreateInstance(VulkanRenderer *renderer)
instanceExtensionNames = SDL_stack_alloc(
const char *,
instanceExtensionCount + 4);
- SDL_memcpy(instanceExtensionNames, originalInstanceExtensionNames, instanceExtensionCount * sizeof(const char *));
+ SDL_memcpy((void *)instanceExtensionNames, originalInstanceExtensionNames, instanceExtensionCount * sizeof(const char *));
// Core since 1.1
instanceExtensionNames[instanceExtensionCount++] =
@@ -11431,7 +11431,7 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
&deviceCreateInfo,
NULL,
&renderer->logicalDevice);
- SDL_stack_free(deviceExtensions);
+ SDL_stack_free((void *)deviceExtensions);
VULKAN_ERROR_CHECK(vulkanResult, vkCreateDevice, 0)
// Load vkDevice entry points