Fixed crash cleaning up text
Text needs to be cleaned up before the renderer is freed.
This commit is contained in:
1 parent
0ab5a8a413
commit
0df12d223c
1 file changed
+1
-1
+1
-1
@@ -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