Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Fix drawn buttons causing rendering issues.
  • Loading branch information
Sonicadvance1 committed Jun 11, 2013
1 parent a1276ef commit 8efdbcd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Core/InputCommon/Src/Android/ButtonManager.cpp
Expand Up @@ -37,9 +37,6 @@ namespace ButtonManager

void Init()
{
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);

// Initialize our buttons
m_buttons.push_back(new Button("ButtonA.png", BUTTON_A, m_coords[0]));
m_buttons.push_back(new Button("ButtonB.png", BUTTON_B, m_coords[1]));
Expand Down Expand Up @@ -83,8 +80,13 @@ namespace ButtonManager

void DrawButtons()
{
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

for(auto it = m_buttons.begin(); it != m_buttons.end(); ++it)
DrawButton((*it)->GetTexture(), (*it)->GetCoords());

glDisable(GL_BLEND);
}

}

0 comments on commit 8efdbcd

Please sign in to comment.