SDL3 GPU: Fix -Wbool-conversion warnings
(cherry picked from commit 4eff36ef53)
This commit is contained in:
1 parent
08ebeaee5c
commit
2bff72b4f6
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -2543,7 +2543,7 @@ void SDL_EndGPUComputePass(
|
|||||||
if (COMPUTEPASS_DEVICE->debug_mode) {
|
if (COMPUTEPASS_DEVICE->debug_mode) {
|
||||||
commandBufferCommonHeader = (CommandBufferCommonHeader *)COMPUTEPASS_COMMAND_BUFFER;
|
commandBufferCommonHeader = (CommandBufferCommonHeader *)COMPUTEPASS_COMMAND_BUFFER;
|
||||||
commandBufferCommonHeader->compute_pass.in_progress = false;
|
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.sampler_bound);
|
||||||
SDL_zeroa(commandBufferCommonHeader->compute_pass.read_only_storage_texture_bound);
|
SDL_zeroa(commandBufferCommonHeader->compute_pass.read_only_storage_texture_bound);
|
||||||
SDL_zeroa(commandBufferCommonHeader->compute_pass.read_only_storage_buffer_bound);
|
SDL_zeroa(commandBufferCommonHeader->compute_pass.read_only_storage_buffer_bound);
|
||||||
|
|||||||
@@ -11686,7 +11686,7 @@ static SDL_GPUDevice *VULKAN_CreateDevice(bool debugMode, bool preferLowPower, S
|
|||||||
renderer = (VulkanRenderer *)SDL_calloc(1, sizeof(*renderer));
|
renderer = (VulkanRenderer *)SDL_calloc(1, sizeof(*renderer));
|
||||||
if (!renderer) {
|
if (!renderer) {
|
||||||
SDL_Vulkan_UnloadLibrary();
|
SDL_Vulkan_UnloadLibrary();
|
||||||
return false;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer->debugMode = debugMode;
|
renderer->debugMode = debugMode;
|
||||||
|
|||||||
Reference in new issue
Block a user