1
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: January 08, 2024, 01:11:34 pm »
I'm at the beginning of Chapter 7 and just finished testing the Tile/Mapping classes. The background texture loads, but when I hit the close button or click the "exit" button on the main menu, I receive an exception. I believe the error is occurring because the Game object's deconstructor is called when the window closes, causing my SharedContext object to lose scope.