mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
tests: Fix GPU tests crashing when window is minimized
This commit is contained in:
parent
c9e22d4672
commit
0f9e86fe1c
2 changed files with 25 additions and 14 deletions
|
|
@ -346,6 +346,12 @@ Render(SDL_Window *window, const int windownum)
|
|||
quit(2);
|
||||
}
|
||||
|
||||
if (swapchainTexture == NULL) {
|
||||
/* Swapchain is unavailable, cancel work */
|
||||
SDL_CancelGPUCommandBuffer(cmd);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Do some rotation with Euler angles. It is not a fixed axis as
|
||||
* quaternions would be, but the effect is cool.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue