"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/cores/VideoPlayer/VideoRenderers/OverlayRendererGL.cpp" between
xbmc-19.0-Matrix.tar.gz and xbmc-19.1.tar.gz

About:

OverlayRendererGL.cpp  (xbmc-19.0-Matrix):OverlayRendererGL.cpp  (xbmc-19.1)
skipping to change at line 370 skipping to change at line 370
} }
void COverlayGlyphGL::Render(SRenderState& state) void COverlayGlyphGL::Render(SRenderState& state)
{ {
if ((m_texture == 0) || (m_count == 0)) if ((m_texture == 0) || (m_count == 0))
return; return;
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBindTexture(GL_TEXTURE_2D, m_texture); glBindTexture(GL_TEXTURE_2D, m_texture);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS _SRC_ALPHA);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glMatrixModview.Push(); glMatrixModview.Push();
glMatrixModview->Translatef(state.x, state.y, 0.0f); glMatrixModview->Translatef(state.x, state.y, 0.0f);
glMatrixModview->Scalef(state.width, state.height, 1.0f); glMatrixModview->Scalef(state.width, state.height, 1.0f);
glMatrixModview.Load(); glMatrixModview.Load();
skipping to change at line 489 skipping to change at line 489
{ {
glDeleteTextures(1, &m_texture); glDeleteTextures(1, &m_texture);
} }
void COverlayTextureGL::Render(SRenderState& state) void COverlayTextureGL::Render(SRenderState& state)
{ {
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBindTexture(GL_TEXTURE_2D, m_texture); glBindTexture(GL_TEXTURE_2D, m_texture);
if(m_pma) if(m_pma)
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glBlendFuncSeparate(GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC _ALPHA);
else else
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MIN US_SRC_ALPHA);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
DRAWRECT rd; DRAWRECT rd;
if (m_pos == POSITION_RELATIVE) if (m_pos == POSITION_RELATIVE)
{ {
rd.top = state.y - state.height * 0.5; rd.top = state.y - state.height * 0.5;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)