aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-10-24 20:51:06 +0200
committerGitHub <noreply@github.com>2016-10-24 20:51:06 +0200
commitbd17e63c26e287486cc0d6362889348f89ff0685 (patch)
tree8647ec8dda9af3ff68c5a33a59496488d8f72aa2
parent9c3f2fbfd04448533958b97053a6ee92e3abda32 (diff)
parent4148dd62eb6ed046f5013ff628c46d97e1e7829b (diff)
Merge pull request #10764 from koying/amcsnotbypassfix17.0b4-Krypton
FIXUP: [amcs] background video
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/RendererMediaCodecSurface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/RendererMediaCodecSurface.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/RendererMediaCodecSurface.cpp
index 9a27abaf39..1d759b5b45 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/RendererMediaCodecSurface.cpp
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/RendererMediaCodecSurface.cpp
@@ -113,6 +113,9 @@ bool CRendererMediaCodecSurface::LoadShadersHook()
bool CRendererMediaCodecSurface::RenderHook(int index)
{
+ glClearColor(0,0,0,0);
+ glClear(GL_COLOR_BUFFER_BIT);
+
CDVDMediaCodecInfo *mci = static_cast<CDVDMediaCodecInfo *>(m_buffers[index].hwDec);
if (mci && !mci->IsReleased())
{