diff options
author | gimli <ebsi4711@gmail.com> | 2012-08-10 22:18:50 +0200 |
---|---|---|
committer | gimli <ebsi4711@gmail.com> | 2012-08-10 22:18:50 +0200 |
commit | d7b9041ecbde28ee7240387859acbd5cee26b0bd (patch) | |
tree | 39e6d448c186b59d8afcd6ed0af8db1b1ea7e2cc | |
parent | a91e8749e76f61e2c24ee87c16bae375674f8476 (diff) |
[rbp] fix blending with gui during hw-rendered playback
-rw-r--r-- | xbmc/guilib/GUIFontTTFGL.cpp | 2 | ||||
-rw-r--r-- | xbmc/guilib/GUITextureGLES.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/guilib/GUIFontTTFGL.cpp b/xbmc/guilib/GUIFontTTFGL.cpp index 87e07caef6..7c179e3152 100644 --- a/xbmc/guilib/GUIFontTTFGL.cpp +++ b/xbmc/guilib/GUIFontTTFGL.cpp @@ -79,7 +79,7 @@ void CGUIFontTTFGL::Begin() } // Turn Blending On - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_ONE); glEnable(GL_BLEND); #ifdef HAS_GL glEnable(GL_TEXTURE_2D); diff --git a/xbmc/guilib/GUITextureGLES.cpp b/xbmc/guilib/GUITextureGLES.cpp index a4118d6039..c3a29a8327 100644 --- a/xbmc/guilib/GUITextureGLES.cpp +++ b/xbmc/guilib/GUITextureGLES.cpp @@ -107,7 +107,7 @@ void CGUITextureGLES::Begin(color_t color) if ( hasAlpha ) { - glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); + glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_ONE); glEnable( GL_BLEND ); } else |