Skip to content

Commit

Permalink
[rbp] fix blending with gui during hw-rendered playback
Browse files Browse the repository at this point in the history
  • Loading branch information
huceke committed Aug 10, 2012
1 parent a91e874 commit d7b9041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIFontTTFGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion xbmc/guilib/GUITextureGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7b9041

Please sign in to comment.