Permalink
Browse files

[rbp] fix blending with gui during hw-rendered playback

  • Loading branch information...
1 parent a91e874 commit d7b9041ecbde28ee7240387859acbd5cee26b0bd @huceke huceke committed Aug 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 xbmc/guilib/GUIFontTTFGL.cpp
  2. +1 −1 xbmc/guilib/GUITextureGLES.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);
@@ -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

0 comments on commit d7b9041

Please sign in to comment.