Fixed crash cleaning up text

Text needs to be cleaned up before the renderer is freed.
This commit is contained in:
Sam Lantinga 2024-04-26 19:32:20 -07:00
parent 0ab5a8a413
commit 0df12d223c

View file

@ -152,9 +152,9 @@ int main(int argc, char *argv[]) {
SDL_RenderPresent(r);
}
SDLTest_CleanupTextDrawing();
SDL_DestroyRenderer(r);
SDL_DestroyWindow(w);
SDLTest_CleanupTextDrawing();
SDL_Quit();
SDLTest_CommonDestroyState(state);
return 0;