mirror of https://github.com/libsdl-org/SDL.git
Fixed incorrect assert
This commit is contained in:
parent
3e9e22f17d
commit
1ae4ef65e6
|
|
@ -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)
|
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(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];
|
return &data->samplers[scale_mode][address_mode - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue