mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-24 00:26:36 +00:00
Examples: GLFW* Make subsequent window creation possible.
This commit is contained in:
parent
bf56b6b9a5
commit
e8a72d3e72
@ -233,6 +233,7 @@ static void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window)
|
|||||||
bool ImGui_ImplGlfwGL2_Init(GLFWwindow* window, bool install_callbacks)
|
bool ImGui_ImplGlfwGL2_Init(GLFWwindow* window, bool install_callbacks)
|
||||||
{
|
{
|
||||||
g_Window = window;
|
g_Window = window;
|
||||||
|
g_Time = 0;
|
||||||
|
|
||||||
// Setup back-end capabilities flags
|
// Setup back-end capabilities flags
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
|
@ -358,6 +358,7 @@ static void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window)
|
|||||||
bool ImGui_ImplGlfwGL3_Init(GLFWwindow* window, bool install_callbacks, const char* glsl_version)
|
bool ImGui_ImplGlfwGL3_Init(GLFWwindow* window, bool install_callbacks, const char* glsl_version)
|
||||||
{
|
{
|
||||||
g_Window = window;
|
g_Window = window;
|
||||||
|
g_Time = 0;
|
||||||
|
|
||||||
// Store GL version string so we can refer to it later in case we recreate shaders.
|
// Store GL version string so we can refer to it later in case we recreate shaders.
|
||||||
if (glsl_version == NULL)
|
if (glsl_version == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user