Permalink
Browse files

apply a9f0ae0 to CLinuxRendererGLES

  • Loading branch information...
1 parent 454912c commit 45129a370197298cee3b69523479b9f0bef9755c bobo1on1 committed Nov 18, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
@@ -1259,9 +1259,6 @@ bool CLinuxRendererGLES::RenderCapture(CRenderCapture* capture)
if (!m_bValidated)
return false;
- // get our screen rect
- const CRect rv = g_graphicsContext.GetViewWindow();
-
// save current video rect
CRect saveSize = m_destRect;
@@ -1280,7 +1277,7 @@ bool CLinuxRendererGLES::RenderCapture(CRenderCapture* capture)
Render(RENDER_FLAG_NOOSD, m_iYV12RenderBuffer);
// read pixels
- glReadPixels(0, rv.y2 - capture->GetHeight(), capture->GetWidth(), capture->GetHeight(),
+ glReadPixels(0, g_graphicsContext.GetHeight() - capture->GetHeight(), capture->GetWidth(), capture->GetHeight(),
GL_RGBA, GL_UNSIGNED_BYTE, capture->GetRenderBuffer());
// OpenGLES returns in RGBA order but CRenderCapture needs BGRA order

0 comments on commit 45129a3

Please sign in to comment.