mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
Test changing the palette for a single texture
This commit is contained in:
parent
264b436dba
commit
7dcc09986d
2 changed files with 38 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue