Examples: GLFW: Made it possible to Shutdown/Init the backend again (by reseting the time storage properly). Changelog. Added to Vulkan example. (#1827)

This commit is contained in:
omar
2018-05-21 10:36:50 +02:00
parent e8a72d3e72
commit 663e2c9237
4 changed files with 7 additions and 5 deletions

View File

@ -49,7 +49,7 @@
// GLFW data
static GLFWwindow* g_Window = NULL;
static double g_Time = 0.0f;
static double g_Time = 0.0;
static bool g_MouseJustPressed[3] = { false, false, false };
static GLFWcursor* g_MouseCursors[ImGuiMouseCursor_COUNT] = { 0 };
@ -233,7 +233,7 @@ static void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window)
bool ImGui_ImplGlfwGL2_Init(GLFWwindow* window, bool install_callbacks)
{
g_Window = window;
g_Time = 0;
g_Time = 0.0;
// Setup back-end capabilities flags
ImGuiIO& io = ImGui::GetIO();