mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
testgpu_spinning_cube: removed duplicate calls to clear and present
This commit is contained in:
parent
1fdc7975cb
commit
ba919832e4
1 changed files with 0 additions and 3 deletions
|
|
@ -313,12 +313,9 @@ static void RenderSprites(SpriteRenderState *rs, SpriteWindowState *ws)
|
|||
const SDL_FRect *positions = ws->positions;
|
||||
int i;
|
||||
|
||||
SDL_SetRenderDrawColor(renderer, 0, 0, 0, SDL_ALPHA_TRANSPARENT);
|
||||
SDL_RenderClear(renderer);
|
||||
for (i = 0; i < NUM_SPRITES; ++i) {
|
||||
SDL_RenderTexture(renderer, sprite, NULL, &positions[i]);
|
||||
}
|
||||
SDL_RenderPresent(renderer);
|
||||
}
|
||||
|
||||
static void UpdateSpriteOverlay(SpriteRenderState *rs, SpriteWindowState *ws, int w, int h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue