浏览代码

OpenGL3 example: fixed mouse handling.

omar 10 年之前
父节点
当前提交
6523fb263d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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();