diff --git a/Context.go b/Context.go index 9fc0e392..ee4e7ce5 100644 --- a/Context.go +++ b/Context.go @@ -63,11 +63,12 @@ func CreateContext(b imgui.Backend[imgui.GLFWWindowFlags]) *context { // Create font if len(result.FontAtlas.defaultFonts) == 0 { - io := result.IO() - io.Fonts().AddFontDefault() - // TODO - // fontAtlas, _, _, _ := io.Fonts().GetTextureDataAsRGBA32() - // r.SetFontTexture(fontAtlas) + fonts := result.IO().Fonts() + fonts.AddFontDefault() + fontTextureImg, w, h, _ := fonts.GetTextureDataAsRGBA32() + tex := Context.backend.CreateTexture(fontTextureImg, int(w), int(h)) + fonts.SetTexID(tex) + fonts.SetTexReady(true) } else { result.FontAtlas.shouldRebuildFontAtlas = true } diff --git a/Flags.go b/Flags.go index d30fdd29..a77e684d 100644 --- a/Flags.go +++ b/Flags.go @@ -447,7 +447,6 @@ const ( ) // SliderFlags represents imgui.SliderFlags -// TODO: Hard-reffer to these constants. type SliderFlags imgui.SliderFlags // slider flags.