Skip to content

Commit 8dedf44

Browse files
committed
Fixed warning: initialization of pointer of type 'VkSampler' (aka 'struct VkSampler_T *') to null from a constant boolean expression
Fixes #13628
1 parent cb54360 commit 8dedf44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render/vulkan/SDL_render_vulkan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3760,7 +3760,7 @@ static VkSampler VULKAN_GetSampler(VULKAN_RenderData *data, SDL_ScaleMode scale_
37603760
VkResult result = vkCreateSampler(data->device, &samplerCreateInfo, NULL, &data->samplers[key]);
37613761
if (result != VK_SUCCESS) {
37623762
SET_ERROR_CODE("vkCreateSampler()", result);
3763-
return false;
3763+
return VK_NULL_HANDLE;
37643764
}
37653765
}
37663766
return data->samplers[key];

0 commit comments

Comments
 (0)