Browse Source

OpenGL3 example: fixed mouse handling.

omar 10 years ago
parent
commit
6523fb263d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/opengl3_example/main.cpp

+ 1 - 0
examples/opengl3_example/main.cpp

@@ -322,6 +322,7 @@ int main(int argc, char** argv)
     {
         ImGuiIO& io = ImGui::GetIO();
         io.MouseWheel = 0;
+        mousePressed[0] = mousePressed[1] = false;
         glfwPollEvents();
         UpdateImGui();