mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fixed crash cleaning up text
Text needs to be cleaned up before the renderer is freed.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user