Skip to content

Commit

Permalink
fix font texture setup
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 27, 2024
1 parent ae39e93 commit 6113134
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,7 @@ void ui_init() {
img_desc.data.subimage[0][0].size = font_width * font_height * 4;
img_desc.label = "icon-font";
sg_image img = sg_make_image(&img_desc);

simgui_image_desc_t ui_img_desc = { };
ui_img_desc.image = img;

io.Fonts->TexID = simgui_imtextureid(simgui_make_image(&ui_img_desc));
io.Fonts->TexID = simgui_imtextureid(img);
}

// initialize helper windows from the chips projects
Expand Down

0 comments on commit 6113134

Please sign in to comment.