rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

demos/atb-agg: fix off-by-one bug in weights calculation #148

Closed yairchu closed 7 years ago

yairchu commented 7 years ago

Currently the text disappears when changing the secondary weight to zero, due to weights being [0, 0, 256, 0, 0] overflowing to [0, 0, 0, 0, 0].

rougier commented 7 years ago

You may need to rebase since I merged your previous PR.

yairchu commented 7 years ago

Rebased now