Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make sure we get the correct blending, #1160

  • Loading branch information...
commit 6df94569be2361c946632efefd118ae0e48dd88d 1 parent 578ebbd
Ziusudra authored robn committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/gui/GuiMeterBar.cpp
View
2  src/gui/GuiMeterBar.cpp
@@ -21,6 +21,7 @@ void MeterBar::Draw()
GetSize(size);
glEnable(GL_BLEND);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(1.0f,1.0f,1.0f,.125f);
Gui::Theme::DrawRoundEdgedRect(size, 5.0);
@@ -31,6 +32,7 @@ void MeterBar::Draw()
size[1] = METERBAR_BAR_HEIGHT;
Gui::Theme::DrawRoundEdgedRect(size, 3.0f);
glPopMatrix();
+ glBlendFunc(GL_ONE, GL_ZERO);
glDisable(GL_BLEND);
Gui::Fixed::Draw();
Please sign in to comment.
Something went wrong with that request. Please try again.