Currently a sprite is created for a font before each
frame/character is added. Then the frame data is added
to the empty pixel array, a frame at a time.
With this patch, the sprite is generated all at once,
after the pixel data is filled. This allows fonts to
work with a videodriver which doesn't use the pixeldata
directly (for displaying sprites with OpenGL they first
have to be converted to a texture, so subsequent
modifications to the pixel array do nothing unless the
sprite is regenerated).
Log in to post a comment.