mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 04:12:07 +00:00
Prevent this error (caught with SANITIZER=undefined)
This commit is contained in:
parent
050ab56038
commit
88c2ec5819
@ -112,7 +112,7 @@ static bool font_renderer_create_atlas(ft_font_renderer_t *handle)
|
||||
glyph->draw_offset_x = slot->bitmap_left;
|
||||
glyph->draw_offset_y = -slot->bitmap_top;
|
||||
|
||||
if (buffer[i])
|
||||
if (buffer[i] && slot->bitmap.buffer)
|
||||
memcpy(buffer[i], slot->bitmap.buffer,
|
||||
slot->bitmap.rows * pitches[i]);
|
||||
max_width = MAX(max_width, (unsigned)slot->bitmap.width);
|
||||
|
Loading…
Reference in New Issue
Block a user