Repository navigation
tess2: match Android index width to openFrameworks - #618
Merged
danoli3 merged 1 commit intoOct 8, 2026
Merged
Conversation
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Android's NDK defines ANDROID, while the patched tesselator.h only checked ANDROID/TARGET_ANDROID. For arm64 and x86 Android builds this selected 32-bit TESSindex in the library, while openFrameworks selected 16-bit indices in its consumer. Reading the archive's index buffer then produced sequences such as 0 0 1 0 2 0, corrupting any ofPath fill.
Add ANDROID to the existing 16-bit platform condition and increment tess2 BUILD_ID from 2 to 3 so cached Android archives are rebuilt. The same patched header is copied into the package. Desktop index width remains unchanged.
The supplied emulator comparison shows the existing failure: the intended star is absent on ES 1.1 and collapses to a triangle on ES 2.0/3.0/3.1. This is before-fix evidence, not a screenshot of the rebuilt result.
Validation:
CI packaging/publication and a full glMatrix/ofPath rendering check with the published replacement libraries remain pending. Related consumer report: openframeworks/openFrameworks#8533.