Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fonsTextIterNext when string ends with invalid UTF-8 sequence #497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asarium
Copy link

@asarium asarium commented Jul 25, 2018

If fonsTextIterNext was called with a string that ended in an invalid
UTF-8 sequence then it would erroneously report a success status to the
calling function.

In my case this cause repeated updates to the font texture atlas which
caused major rendering slowdowns.

This fixes that by examining the UTF-8 decoder status before returning
from the function with a success status code.

If fonsTextIterNext was called with a string that ended in an invalid
UTF-8 sequence then it would erroneously report a success status to the
calling function.

In my case this cause repeated updates to the font texture atlas which
caused major rendering slowdowns.

This fixes that by examining the UTF-8 decoder status before returning
from the function with a success status code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant