There are several TODOs throughout the codebase related to cleaning up artifacts in destructors. Go through each TODO and perform all necessary cleanup (OpenGL, SDL, FreeType, etc). Check every destructor to make sure all dynamically allocated objects are freed when the object is destroyed.
There are several TODOs throughout the codebase related to cleaning up artifacts in destructors. Go through each TODO and perform all necessary cleanup (OpenGL, SDL, FreeType, etc). Check every destructor to make sure all dynamically allocated objects are freed when the object is destroyed.