Fixed crash with VEFontCache.can_batch_glyph
This commit is contained in:
parent
c93c0ed567
commit
838e37e58d
@ -98,7 +98,7 @@ can_batch_glyph :: proc( ctx : ^Context, font : FontID, entry : ^Entry, glyph_in
|
||||
atlas_index := LRU_get( & region.state, lru_code )
|
||||
if atlas_index == - 1
|
||||
{
|
||||
if region.next_idx >= u32( region.state.capacity) {
|
||||
if region.next_idx > u32( region.state.capacity) {
|
||||
// We will evict LRU. We must predict which LRU will get evicted, and if it's something we've seen then we need to take slowpath and flush batch.
|
||||
next_evict_codepoint := LRU_get_next_evicted( & region.state )
|
||||
seen := get( & ctx.temp_codepoint_seen, next_evict_codepoint )
|
||||
|
Loading…
Reference in New Issue
Block a user