Fixed the yellow text.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2848 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox 2009-04-03 13:15:09 +00:00
parent 9cae54fbb8
commit e1e867dded
1 changed files with 6 additions and 5 deletions

View File

@ -48,9 +48,10 @@ void AddMessage(const char* pstr, u32 ms)
void DrawMessages() void DrawMessages()
{ {
GLboolean wasEnabled = glIsEnabled(GL_BLEND); // Get the status of the Blend mode
if (!wasEnabled) GLboolean enabled = glIsEnabled(GL_BLEND);
glEnable(GL_BLEND);
glDisable(GL_BLEND);
if (s_listMsgs.size() > 0) if (s_listMsgs.size() > 0)
{ {
@ -80,8 +81,8 @@ void DrawMessages()
} }
} }
if (!wasEnabled) if (enabled)
glDisable(GL_BLEND); glEnable(GL_BLEND);
} }
} // namespace } // namespace