diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2012-12-22 00:03:58 +0100 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@gmail.com> | 2012-12-24 19:50:16 +0100 |
| commit | 2fedab3baddadb5ccd72d88f28406d3407633c7e (patch) | |
| tree | a92df06867a5b5e6ba174c4da0ae8918f0436bfe /Source | |
| parent | 2dd570c880662d9477be384f97a500f56b12ba67 (diff) | |
OGL: Make OSD messages fade out properly instead of having them disappear spontaneously.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 77bb91d48b..978972f4fb 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -604,12 +604,17 @@ void Renderer::RenderText(const char *text, int left, int top, u32 color) glColor4f(((color>>16) & 0xff)/255.0f, ((color>> 8) & 0xff)/255.0f, ((color>> 0) & 0xff)/255.0f, ((color>>24) & 0xFF)/255.0f); + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + s_pfont->printMultilineText(text, left * 2.0f / (float)nBackbufferWidth - 1, 1 - top * 2.0f / (float)nBackbufferHeight, 0, nBackbufferWidth, nBackbufferHeight); GL_REPORT_ERRORD(); + + glDisable(GL_BLEND); } TargetRectangle Renderer::ConvertEFBRectangle(const EFBRectangle& rc) |
