From 036ed3ea93583f5fd292fa155a9453e2d83867e5 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 6 Dec 2014 20:43:08 +0000 Subject: [PATCH] OpenGL3 example: unregistered mouse callback for mouse click-release faster than frame interval. --- examples/opengl3_example/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/opengl3_example/main.cpp b/examples/opengl3_example/main.cpp index d1adae7b..9ccc8ab6 100644 --- a/examples/opengl3_example/main.cpp +++ b/examples/opengl3_example/main.cpp @@ -169,6 +169,7 @@ void InitGL() window = glfwCreateWindow(1280, 720, "ImGui OpenGL example", NULL, NULL); glfwMakeContextCurrent(window); glfwSetKeyCallback(window, glfw_key_callback); + glfwSetMouseButtonCallback(window, glfw_mouse_button_callback); glfwSetScrollCallback(window, glfw_scroll_callback); glfwSetCharCallback(window, glfw_char_callback);