mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 07:03:54 +00:00
GPU: Return early in SDL_WaitForGPUFences if num_fences is 0
This commit is contained in:
@@ -3468,7 +3468,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user