Repository navigation
Replies: 1 comment
|
That error looks like a Dear ImGui version mismatch rather than the font texture actually being missing. Current imgui-sfml still has this check in
Its CMake file asks for ImGui 1.91.1. Dear ImGui 1.92 changed the texture API: The quickest fix is to build ImGui-SFML against a 1.91.x Dear ImGui checkout/release, or use an ImGui-SFML revision/branch that explicitly supports ImGui 1.92. I would not only patch this assert locally, because 1.92 also changed the draw-command texture fields to the newer Check the ImGui version actually found through |
Uh oh!
There was an error while loading. Please reload this page.
Got this compilation error:
src/imgui-SFML.cpp:955:28: error: invalid operands to binary expression ('ImTextureRef' and 'std::nullptr_t')
955 | assert(io.Fonts->TexID != /(ImTextureID)/ nullptr); // You forgot to create and set font texture
| ~~~~~~~~~~~~~~~ ^ ~~~~~~~
/usr/include/assert.h:138:27: note: expanded from macro 'assert'
138 | (static_cast (expr) \
All reactions