I'm trying to render an InputText with a resizable buffer.
If I call ImGui.inputText("input", str, ImGuiInputTextFlags.CallbackResize), when I write in the input field I get a NullPointerException coming from a native method.
However, if I set the ImGuiInputTextCallback, the string gets resized correctly, even if the callback doesn't do anything.
I'm trying to render an InputText with a resizable buffer. If I call
ImGui.inputText("input", str, ImGuiInputTextFlags.CallbackResize)
, when I write in the input field I get a NullPointerException coming from a native method. However, if I set the ImGuiInputTextCallback, the string gets resized correctly, even if the callback doesn't do anything.Is this an expected behavior?