I'm trying to use this example from the demo
current_weapon = nk_combo(ctx, weapons, NK_LEN(weapons), current_weapon, 25, nk_vec2(200,200));
but on my program when I click on the combobox it opens and instantly close and I don't how to fix it the same thing is happening on tree. I looked up if someone had the same issue but I couldn't find one so I'm asking.
I'm trying to use this example from the demo
current_weapon = nk_combo(ctx, weapons, NK_LEN(weapons), current_weapon, 25, nk_vec2(200,200));
but on my program when I click on the combobox it opens and instantly close and I don't how to fix it the same thing is happening on tree. I looked up if someone had the same issue but I couldn't find one so I'm asking.I'm using SDL2 with Nuklear.