Make subsequent window creation possible #1827
I'm the author of the Java binding of dear-imgui, and I want to do GUI tests (say, running some GUI windows on a non-headless machine and automatically stop after a few seconds).
(假设 == assume, 失败 == failed)
After some debugging I found that when I initialize glfw the second time,
io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f/60.0f)
…by reseting the time storage properly). Changelog. Added to Vulkan example. (#1827)
@ice1000 I have merged the change of reseting time (and applied it to the GLFW+Vulkan example). Thanks!
I took the liberty to squash the commits and remove the addition of