From e1e867dded702a5af55e08a75ad06224f1336276 Mon Sep 17 00:00:00 2001 From: omegadox Date: Fri, 3 Apr 2009 13:15:09 +0000 Subject: [PATCH] Fixed the yellow text. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2848 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugins/Plugin_VideoOGL/Src/OnScreenDisplay.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/OnScreenDisplay.cpp b/Source/Plugins/Plugin_VideoOGL/Src/OnScreenDisplay.cpp index 1275ca779e..fba0e8fe05 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/OnScreenDisplay.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/OnScreenDisplay.cpp @@ -48,9 +48,10 @@ void AddMessage(const char* pstr, u32 ms) void DrawMessages() { - GLboolean wasEnabled = glIsEnabled(GL_BLEND); - if (!wasEnabled) - glEnable(GL_BLEND); + // Get the status of the Blend mode + GLboolean enabled = glIsEnabled(GL_BLEND); + + glDisable(GL_BLEND); if (s_listMsgs.size() > 0) { @@ -80,8 +81,8 @@ void DrawMessages() } } - if (!wasEnabled) - glDisable(GL_BLEND); + if (enabled) + glEnable(GL_BLEND); } } // namespace