diff options
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/RendererMediaCodecSurface.cpp | 3 |
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()) { |