mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 01:15:39 +00:00
Fixed incorrect assert
This commit is contained in:
parent
3e9e22f17d
commit
1ae4ef65e6
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ static void PushFragmentUniforms(GPU_RenderData *data, SDL_RenderCommand *cmd)
|
|||
static SDL_GPUSampler **SamplerPointer(GPU_RenderData *data, SDL_TextureAddressMode address_mode, SDL_ScaleMode scale_mode)
|
||||
{
|
||||
SDL_assert(scale_mode < SDL_arraysize(data->samplers));
|
||||
SDL_assert(address_mode < SDL_arraysize(data->samplers[0]));
|
||||
SDL_assert((address_mode - 1) < SDL_arraysize(data->samplers[0]));
|
||||
return &data->samplers[scale_mode][address_mode - 1];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue