Skip to content

Commit

Permalink
VideoPlayer: fix frame blendig, broke with OpenGL 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Mar 5, 2018
1 parent 3c3a4e9 commit 9c4c57c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,12 @@ void CLinuxRendererGL::RenderUpdate(int index, int index2, bool clear, unsigned
m_iYV12RenderBuffer = index;
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(1.0f, 1.0f, 1.0f, 0.5f);

if (m_pYUVShader)
m_pYUVShader->SetAlpha(alpha/255/2);
if (m_pVideoFilterShader)
m_pVideoFilterShader->SetAlpha(alpha/255/2);

Render(flags, m_iYV12RenderBuffer);
}

Expand Down

0 comments on commit 9c4c57c

Please sign in to comment.