TTF_OpenFontRW retains the SDL_RWops on success, so we must keep the font data around to back it

This commit is contained in:
Cameron Gutman
2019-04-09 21:26:47 -07:00
parent a8dc5ac14a
commit 6783cf57da
2 changed files with 7 additions and 5 deletions
@@ -26,6 +26,7 @@ private:
SDL_Renderer* m_Renderer;
SDL_Texture* m_Texture;
QByteArray m_FontData;
TTF_Font* m_OverlayFonts[Overlay::OverlayMax];
SDL_Surface* m_OverlaySurfaces[Overlay::OverlayMax];
SDL_Texture* m_OverlayTextures[Overlay::OverlayMax];