Rename SDL_SetGPURenderStateFragmentUniformData() to SDL_SetGPURenderStateFragmentUniforms()

This commit is contained in:
Sam Lantinga
2025-03-14 09:18:34 -07:00
parent 96194347bc
commit 02faa8f75c
7 changed files with 9 additions and 9 deletions

View File

@@ -209,7 +209,7 @@ static bool InitGPURenderState(void)
SDL_zero(uniforms);
uniforms.texture_width = (float)target->w;
uniforms.texture_height = (float)target->h;
if (!SDL_SetGPURenderStateFragmentUniformData(data->state, 0, &uniforms, sizeof(uniforms))) {
if (!SDL_SetGPURenderStateFragmentUniforms(data->state, 0, &uniforms, sizeof(uniforms))) {
SDL_Log("Couldn't set uniform data: %s", SDL_GetError());
return false;
}

View File

@@ -220,7 +220,7 @@ static bool InitGPURenderState(void)
uniforms.distance_field_range = DISTANCE_FIELD_RANGE;
uniforms.texture_width = (float)font_texture->w;
uniforms.texture_height = (float)font_texture->h;
if (!SDL_SetGPURenderStateFragmentUniformData(render_state, 0, &uniforms, sizeof(uniforms))) {
if (!SDL_SetGPURenderStateFragmentUniforms(render_state, 0, &uniforms, sizeof(uniforms))) {
SDL_Log("Couldn't set uniform data: %s", SDL_GetError());
return false;
}