Преглед на файлове

Examples: GLFW* Make subsequent window creation possible.

ice1000 преди 7 години
родител
ревизия
e8a72d3e72
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      examples/opengl2_example/imgui_impl_glfw_gl2.cpp
  2. 1 0
      examples/opengl3_example/imgui_impl_glfw_gl3.cpp

+ 1 - 0
examples/opengl2_example/imgui_impl_glfw_gl2.cpp

@@ -233,6 +233,7 @@ static void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window)
 bool    ImGui_ImplGlfwGL2_Init(GLFWwindow* window, bool install_callbacks)
 {
     g_Window = window;
+    g_Time = 0;
 
     // Setup back-end capabilities flags
     ImGuiIO& io = ImGui::GetIO();

+ 1 - 0
examples/opengl3_example/imgui_impl_glfw_gl3.cpp

@@ -358,6 +358,7 @@ static void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window)
 bool    ImGui_ImplGlfwGL3_Init(GLFWwindow* window, bool install_callbacks, const char* glsl_version)
 {
     g_Window = window;
+    g_Time = 0;
 
     // Store GL version string so we can refer to it later in case we recreate shaders.
     if (glsl_version == NULL)