Skip to content

Commit

Permalink
fix enum type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Sep 30, 2024
1 parent b1159b0 commit 22b59d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpu/vulkan/SDL_gpu_vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -4503,7 +4503,7 @@ static Uint32 VULKAN_INTERNAL_CreateSwapchain(
windowData->imageCount = swapchainSupportDetails.capabilities.minImageCount;
}

if (windowData->presentMode == VK_PRESENT_MODE_MAILBOX_KHR) {
if (windowData->presentMode == SDL_GPU_PRESENTMODE_MAILBOX) {
/* Required for proper triple-buffering.
* Note that this is below the above maxImageCount check!
* If the driver advertises MAILBOX but does not support 3 swap
Expand Down Expand Up @@ -9564,7 +9564,7 @@ static bool VULKAN_AcquireSwapchainTexture(
}

if (windowData->inFlightFences[windowData->frameCounter] != NULL) {
if (windowData->presentMode == VK_PRESENT_MODE_FIFO_KHR) {
if (windowData->presentMode == SDL_GPU_PRESENTMODE_VSYNC) {
// In VSYNC mode, block until the least recent presented frame is done
if (!VULKAN_WaitForFences(
(SDL_GPURenderer *)renderer,
Expand Down

0 comments on commit 22b59d9

Please sign in to comment.