From 4eff36ef53b39cf4c6779cec355b6ad2bbf1d401 Mon Sep 17 00:00:00 2001
From: WillyJL <[EMAIL REDACTED]>
Date: Sun, 29 Jun 2025 06:23:06 +0100
Subject: [PATCH] SDL3 GPU: Fix -Wbool-conversion warnings
---
src/gpu/SDL_gpu.c | 2 +-
src/gpu/vulkan/SDL_gpu_vulkan.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c
index 39cf2eb89560d..2b5a38bdd5a0b 100644
--- a/src/gpu/SDL_gpu.c
+++ b/src/gpu/SDL_gpu.c
@@ -2536,7 +2536,7 @@ void SDL_EndGPUComputePass(
if (COMPUTEPASS_DEVICE->debug_mode) {
commandBufferCommonHeader = (CommandBufferCommonHeader *)COMPUTEPASS_COMMAND_BUFFER;
commandBufferCommonHeader->compute_pass.in_progress = false;
- commandBufferCommonHeader->compute_pass.compute_pipeline = false;
+ commandBufferCommonHeader->compute_pass.compute_pipeline = NULL;
SDL_zeroa(commandBufferCommonHeader->compute_pass.sampler_bound);
SDL_zeroa(commandBufferCommonHeader->compute_pass.read_only_storage_texture_bound);
SDL_zeroa(commandBufferCommonHeader->compute_pass.read_only_storage_buffer_bound);
diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index 068d6820971b3..77210044908bd 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -11700,7 +11700,7 @@ static SDL_GPUDevice *VULKAN_CreateDevice(bool debugMode, bool preferLowPower, S
renderer = (VulkanRenderer *)SDL_calloc(1, sizeof(*renderer));
if (!renderer) {
SDL_Vulkan_UnloadLibrary();
- return false;
+ return NULL;
}
renderer->debugMode = debugMode;