mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
GPU: Return early in SDL_WaitForGPUFences if num_fences is 0
(cherry picked from commit d7b1255484)
This commit is contained in:
parent
a97d8b3848
commit
a21c31aea1
1 changed files with 5 additions and 1 deletions
|
|
@ -3449,7 +3449,11 @@ bool SDL_WaitForGPUFences(
|
|||
{
|
||||
CHECK_DEVICE_MAGIC(device, false);
|
||||
|
||||
CHECK_PARAM(fences == NULL && num_fences > 0) {
|
||||
if (!num_fences) {
|
||||
return true;
|
||||
}
|
||||
|
||||
CHECK_PARAM(fences == NULL) {
|
||||
SDL_InvalidParamError("fences");
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue