Skip to content

Commit

Permalink
Check for null window in SDL_WaitForGPUSwapchain
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Dec 11, 2024
1 parent 3b0fa05 commit 4275742
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gpu/SDL_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2731,6 +2731,11 @@ bool SDL_WaitForGPUSwapchain(
{
CHECK_DEVICE_MAGIC(device, false);

if (window == NULL) {
SDL_InvalidParamError("window");
return false;
}

return device->WaitForSwapchain(
device->driverData,
window);
Expand Down

0 comments on commit 4275742

Please sign in to comment.