libglui / glui

GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications. It is window-system independent, using GLUT or FreeGLUT.
Other
200 stars 81 forks source link

GLUI_Main::mouse dead code? #94

Open nigels-com opened 5 years ago

nigels-com commented 5 years ago

@mick-p1982 notes that there is dead code in relation to AND 0 in GLUI_Main::mouse

      if ( active_control AND
           active_control->active_type == GLUI_CONTROL_ACTIVE_MOUSEDOWN AND 0)
      {
        /*** This is a control that needs to be deactivated when the
        mouse button is released ****/
        deactivate_current_control();
      }