Skip to content

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented May 15, 2023

This commit fixes 3 bugs that I found while working on another feature:

  • GetGlyphIndices doesn't return an error when the codepoint couldn't
    be found, it simply returns a glyph index of 0.
  • _resetGlyphAtlas failed to reset the linear_flat_set "load" to 0
    which would result in an unbounded memory growth over time.
  • linear_flat_set was missing move constructors/operators, which
    would've led to crashes, etc., but thankfully we haven't made use
    of these operators yet. But better fix it now than never.

@lhecker lhecker added Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Area-AtlasEngine labels May 15, 2023
@lhecker lhecker force-pushed the dev/lhecker/atlas-engine-fixup branch from 952ed38 to 2140985 Compare May 15, 2023 15:22
@lhecker lhecker merged commit af5a6ea into main May 15, 2023
@lhecker lhecker deleted the dev/lhecker/atlas-engine-fixup branch May 15, 2023 18:40
DHowett pushed a commit that referenced this pull request May 15, 2023
This commit fixes 3 bugs that I found while working on another feature:
* `GetGlyphIndices` doesn't return an error when the codepoint couldn't
  be found, it simply returns a glyph index of 0.
* `_resetGlyphAtlas` failed to reset the `linear_flat_set` "load" to 0
  which would result in an unbounded memory growth over time.
* `linear_flat_set` was missing move constructors/operators, which
  would've led to crashes, etc., but thankfully we haven't made use
  of these operators yet. But better fix it now than never.

(cherry picked from commit af5a6ea)
Service-Card-Id: 89210623
Service-Version: 1.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AtlasEngine Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2)

Projects

Development

Successfully merging this pull request may close these issues.

4 participants