Skip to content

Commit

Permalink
Call I_ShutdownGraphics on quit
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Oct 21, 2023
1 parent 4a31da1 commit 82bb405
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,10 @@ void I_InitGraphics(void)
while (SDL_PollEvent(&dummy));

initialized = true;

// Call I_ShutdownGraphics on quit

I_AtExit(I_ShutdownGraphics, true);
}

// [crispy] re-initialize only the parts of the rendering stack that are really necessary
Expand Down

0 comments on commit 82bb405

Please sign in to comment.