Skip to content
Browse files

[LinuxRendererGLES] - Don't let RENDER_BYPASS clear out the whole scr…

…een (use video rect instead)
  • Loading branch information...
1 parent f61f8ba commit cd1251107a725cfed96746dad2313e588cfc6252 @mikrohard committed with Dec 11, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
View
9 xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
@@ -415,12 +415,21 @@ void CLinuxRendererGLES::RenderUpdate(bool clear, DWORD flags, DWORD alpha)
if (m_RenderUpdateCallBackFn)
(*m_RenderUpdateCallBackFn)(m_RenderUpdateCallBackCtx, m_sourceRect, m_destRect);
+ RESOLUTION res = GetResolution();
+ int iWidth = g_settings.m_ResInfo[res].iWidth;
+ int iHeight = g_settings.m_ResInfo[res].iHeight;
+
g_graphicsContext.BeginPaint();
+ glScissor(m_destRect.x1,
+ iHeight - m_destRect.y2,
+ m_destRect.x2 - m_destRect.x1,
+ m_destRect.y2 - m_destRect.y1);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
+ glScissor(0, 0, iWidth, iHeight);
g_graphicsContext.EndPaint();
return;

0 comments on commit cd12511

Please sign in to comment.
Something went wrong with that request. Please try again.