Skip to content
Browse files

Merge pull request #1920 from mikrohard/bypass_windowed_fix

[LinuxRendererGLES] - Don't let RENDER_BYPASS clear out the whole screen
  • Loading branch information...
2 parents d646c6f + cd12511 commit d72b23bae5054c0324209bcd40daf3da6de38c37 @davilla davilla committed 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 d72b23b

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