From 4844fd7c09aa85f143e782ed27c58f42489da41e Mon Sep 17 00:00:00 2001 From: Adam Kewley Date: Tue, 17 Dec 2024 15:18:14 +0100 Subject: [PATCH] Call ClearTexData after fonts are uploaded to the GPU --- src/oscar/UI/ui_graphics_backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oscar/UI/ui_graphics_backend.cpp b/src/oscar/UI/ui_graphics_backend.cpp index 1c9c659d0..2029d9c2d 100644 --- a/src/oscar/UI/ui_graphics_backend.cpp +++ b/src/oscar/UI/ui_graphics_backend.cpp @@ -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; }