]> git.nega.tv - josh/narcissus/commit
narcissus-font: Fix cache writing wrong rects
authorJosh Simmons <josh@nega.tv>
Fri, 15 Nov 2024 22:00:40 +0000 (23:00 +0100)
committerJosh Simmons <josh@nega.tv>
Fri, 15 Nov 2024 22:00:40 +0000 (23:00 +0100)
commit82415f8825f2f3bbaca27d7d3b0979921360341d
tree6ed09098db1602721e22ff012f7ebba289ce7d05
parenta733174f96ce53df46766e4d3fed4c9255c40216
narcissus-font: Fix cache writing wrong rects

The rect id was being set to zero rather than the touched glyph index,
so for the first frame after packing the data would always have gaps.
engine/narcissus-font/src/cache.rs