Test changing the palette for a single texture

This commit is contained in:
Sam Lantinga
2025-09-27 10:45:24 -07:00
parent 264b436dba
commit 7dcc09986d
2 changed files with 38 additions and 9 deletions

View File

@@ -728,6 +728,10 @@ static bool UpdateTexturePalette(SDL_Texture *texture)
return false;
}
} else {
if (!FlushRenderCommandsIfTextureNeeded(texture)) {
return false;
}
if (!renderer->UpdateTexturePalette(renderer, texture)) {
return false;
}