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

Commits on Jul 25, 2018

  1. Fix fonsTextIterNext when string ends with invalid UTF-8 sequence

    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.
    asarium committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    ff51f60 View commit details
    Browse the repository at this point in the history