Permalink
Browse files

[gles] ensure we use the NOBLEND texture shader only if no diffuse co…

…lor is specified. fixes #13558.
  • Loading branch information...
1 parent 21201bd commit 6b365f74239e76fe7081c37ad3b54ec695da5645 Jonathan Marshall committed Nov 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/guilib/GUITextureGLES.cpp
@@ -80,13 +80,13 @@ void CGUITextureGLES::Begin(color_t color)
}
else
{
- if ( hasAlpha )
+ if (m_col[0][0] == 255 && m_col[0][1] == 255 && m_col[0][2] == 255 && m_col[0][3] == 255)
{
- g_Windowing.EnableGUIShader(SM_TEXTURE);
+ g_Windowing.EnableGUIShader(SM_TEXTURE_NOBLEND);
}
else
{
- g_Windowing.EnableGUIShader(SM_TEXTURE_NOBLEND);
+ g_Windowing.EnableGUIShader(SM_TEXTURE);
}
}

0 comments on commit 6b365f7

Please sign in to comment.