Skip to content

Commit

Permalink
ui: Wait for queue idle after uploading a glyph
Browse files Browse the repository at this point in the history
  • Loading branch information
yeetari committed May 16, 2024
1 parent ac74f40 commit 43f4b4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/sources/ui/font_atlas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ CachedGlyph FontAtlas::ensure_glyph(Font &font, uint32_t glyph_index) {

cmd_buf.bind_associated_buffer(vull::move(staging_buffer));
queue->submit(cmd_buf, nullptr, {}, {});
queue->wait_idle();

CachedGlyph glyph{
.font = &font,
Expand Down

0 comments on commit 43f4b4b

Please sign in to comment.