Skip to content

Commit

Permalink
Call ClearTexData after fonts are uploaded to the GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Dec 17, 2024
1 parent 987dcd3 commit 4844fd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/oscar/UI/ui_graphics_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ namespace
};
rv.set_pixel_data({pixel_data, num_bytes});
rv.set_filter_mode(TextureFilterMode::Linear);
io.Fonts->ClearTexData(); // it's not needed by ImGui: it'll use the GPU texture

return rv;
}
Expand Down

0 comments on commit 4844fd7

Please sign in to comment.