diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c index 57e0c97d89..70a8656cc9 100644 --- a/src/gpu/SDL_gpu.c +++ b/src/gpu/SDL_gpu.c @@ -2090,6 +2090,10 @@ void SDL_BindGPUVertexSamplers( } } + if (num_bindings == 0) { + return; + } + RENDERPASS_DEVICE->BindVertexSamplers( RENDERPASS_COMMAND_BUFFER, first_slot, @@ -2197,6 +2201,10 @@ void SDL_BindGPUFragmentSamplers( } } + if (num_bindings == 0) { + return; + } + RENDERPASS_DEVICE->BindFragmentSamplers( RENDERPASS_COMMAND_BUFFER, first_slot,