diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2013-06-17 12:05:47 +0200 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2013-06-17 12:05:47 +0200 |
| commit | ca22872daed7c384db350b2987b21ea92299a9e8 (patch) | |
| tree | 21414cf12a5eb7a2b3cc4e0b1702aabf4c7c8890 /Source/Core/InputCommon/Src/Android/ButtonManager.cpp | |
| parent | f0ea525d3b4dea15363674c822943ecf38da26b3 (diff) | |
| parent | 43a4d418896f47ea971ccd83d5630a97f0f0000b (diff) | |
Merge 'master' into shader-uids-awesome.
Conflicts:
Source/Core/VideoCommon/Src/LightingShaderGen.cpp
Source/Core/VideoCommon/Src/PixelShaderGen.cpp
Source/Core/VideoCommon/Src/PixelShaderGen.h
Source/Core/VideoCommon/Src/VertexShaderGen.cpp
Diffstat (limited to 'Source/Core/InputCommon/Src/Android/ButtonManager.cpp')
| -rw-r--r-- | Source/Core/InputCommon/Src/Android/ButtonManager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/Src/Android/ButtonManager.cpp b/Source/Core/InputCommon/Src/Android/ButtonManager.cpp index 947f7b0081..9ae996732d 100644 --- a/Source/Core/InputCommon/Src/Android/ButtonManager.cpp +++ b/Source/Core/InputCommon/Src/Android/ButtonManager.cpp @@ -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])); @@ -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); } } |
