Skip to content

Commit

Permalink
Fix flashing/jittering control panel when fully opaque.
Browse files Browse the repository at this point in the history
This removes an old software rendering optimization where a fully opaque
control panel would only be rendered if it had changed.
  • Loading branch information
blast007 committed Feb 17, 2025
1 parent b3d71fd commit db6dd33
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/bzflag/ControlPanel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@ void ControlPanel::render(SceneRenderer& _renderer)

if (!resized) resize();

// optimization for software rendering folks
if (!changedMessage && _renderer.getPanelOpacity() == 1.0f)
return;

int i, j;
const int x = window.getOriginX();
const int y = window.getOriginY();
Expand Down

0 comments on commit db6dd33

Please sign in to comment.