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 committed 2019-04-09 21:26:47 -07:00
1 parent a8dc5ac14a
commit 6783cf57da
2 files changed
+7 -5

No files matched your search

@@ -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];