Fix for broken text when the font is reloaded.

This commit is contained in:
Maximilian Wagenbach 2018-01-15 17:37:50 +01:00
parent b6c1acab3c
commit c24de5fcaf
3 changed files with 19 additions and 8 deletions

View file

@ -393,6 +393,7 @@ private:
mutable VertexArray m_outlineVertices; ///< Vertex array containing the outline geometry
mutable FloatRect m_bounds; ///< Bounding rectangle of the text (in local coordinates)
mutable bool m_geometryNeedUpdate; ///< Does the geometry need to be recomputed?
mutable Uint64 m_fontTextureId; ///< The font texture id
};
} // namespace sf

View file

@ -35,10 +35,11 @@
namespace sf
{
class Window;
class InputStream;
class RenderTarget;
class RenderTexture;
class InputStream;
class Text;
class Window;
////////////////////////////////////////////////////////////
/// \brief Image living on the graphics card that can be used for drawing
@ -584,6 +585,7 @@ public:
private:
friend class Text;
friend class RenderTexture;
friend class RenderTarget;