mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 18:07:40 +00:00
SDL_test: clear text cache on exit event
This commit is contained in:
parent
b4bfb18318
commit
12c0be028e
1 changed files with 2 additions and 0 deletions
|
@ -2046,6 +2046,8 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
|
|||
{
|
||||
SDL_Window *window = SDL_GetWindowFromID(event->window.windowID);
|
||||
if (window) {
|
||||
/* Clear cache to avoid stale textures */
|
||||
SDLTest_CleanupTextDrawing();
|
||||
for (i = 0; i < state->num_windows; ++i) {
|
||||
if (window == state->windows[i]) {
|
||||
if (state->targets[i]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue