Browse Source

OpenGL3 example: unregistered mouse callback for mouse click-release faster than frame interval.

ocornut 11 years ago
parent
commit
036ed3ea93
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/opengl3_example/main.cpp

+ 1 - 0
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);