ImGuiIntegration::Context::relayout() creates the GL::Texture2D for the font atlas, but does not set the TexID in the ImFontAtlas object.
I may have just missed something, but I couldn't find any way to access the imgui font atlas texture.
Simple fix tho!
Around there this line should fix it:
io.Fonts->SetTexID(reinterpret_cast<ImTextureID>(&_texture));
or
io.Fonts->SetTexID(&_texture);
I am unsure if the reinterpret cast is needed, I would expect it, because ImTextureID is void*.
It seems like static_cast<ImTextureID>() is used elsewhere, so idk.
ImGuiIntegration::Context::relayout()creates theGL::Texture2Dfor the font atlas, but does not set theTexIDin theImFontAtlasobject.I may have just missed something, but I couldn't find any way to access the imgui font atlas texture.
Simple fix tho!
magnum-integration/src/Magnum/ImGuiIntegration/Context.cpp
Line 228 in 43e86c2
Around there this line should fix it:
io.Fonts->SetTexID(reinterpret_cast<ImTextureID>(&_texture));or
io.Fonts->SetTexID(&_texture);I am unsure if the reinterpret cast is needed, I would expect it, because
ImTextureIDis void*.It seems like
static_cast<ImTextureID>()is used elsewhere, so idk.