Permalink
Browse files

make sure we get the correct blending, #1160

  • Loading branch information...
1 parent 578ebbd commit 6df94569be2361c946632efefd118ae0e48dd88d Ziusudra committed with robn Apr 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/GuiMeterBar.cpp
View
@@ -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();

0 comments on commit 6df9456

Please sign in to comment.