mirror of https://github.com/encounter/SDL.git
Fix compiler warnings in testvulkan.c
MSVC gives the following warnings when compiling testvulkan.c: ``` testvulkan.c(656,1): warning C4018: '<': signed/unsigned mismatch testvulkan.c(656,1): warning C4018: '>': signed/unsigned mismatch testvulkan.c(660,1): warning C4018: '<': signed/unsigned mismatch testvulkan.c(660,1): warning C4018: '>': signed/unsigned mismatch ```
This commit is contained in:
parent
dd95c9c8a2
commit
f30e2e438d
|
@ -653,11 +653,11 @@ static SDL_bool createSwapchain(void)
|
||||||
|
|
||||||
// Clamp the size to the allowable image extent.
|
// Clamp the size to the allowable image extent.
|
||||||
// SDL_Vulkan_GetDrawableSize()'s result it not always in this range (bug #3287)
|
// SDL_Vulkan_GetDrawableSize()'s result it not always in this range (bug #3287)
|
||||||
vulkanContext->swapchainSize.width = SDL_clamp(w,
|
vulkanContext->swapchainSize.width = SDL_clamp((uint32_t) w,
|
||||||
vulkanContext->surfaceCapabilities.minImageExtent.width,
|
vulkanContext->surfaceCapabilities.minImageExtent.width,
|
||||||
vulkanContext->surfaceCapabilities.maxImageExtent.width);
|
vulkanContext->surfaceCapabilities.maxImageExtent.width);
|
||||||
|
|
||||||
vulkanContext->swapchainSize.height = SDL_clamp(h,
|
vulkanContext->swapchainSize.height = SDL_clamp((uint32_t) h,
|
||||||
vulkanContext->surfaceCapabilities.minImageExtent.height,
|
vulkanContext->surfaceCapabilities.minImageExtent.height,
|
||||||
vulkanContext->surfaceCapabilities.maxImageExtent.height);
|
vulkanContext->surfaceCapabilities.maxImageExtent.height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue