Skip to content

Commit

Permalink
apply a9f0ae0 to CLinuxRendererGLES
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo1on1 committed Nov 18, 2011
1 parent 454912c commit 45129a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 45129a3

Please sign in to comment.