Skip to content

Commit

Permalink
fixed: missed correction of LoadPlane stride parameter for the RGB pa…
Browse files Browse the repository at this point in the history
…th in GLES renderer
  • Loading branch information
elupus committed Mar 22, 2012
1 parent 4927654 commit e956ed5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1372,17 +1372,17 @@ void CLinuxRendererGLES::UploadYV12Texture(int source)
{
LoadPlane( fields[FIELD_TOP][0] , GL_RGBA, buf.flipindex
, im->width, im->height >> 1
, m_sourceWidth*2, m_rgbBuffer );
, m_sourceWidth*8, m_rgbBuffer );

LoadPlane( fields[FIELD_BOT][0], GL_RGBA, buf.flipindex
, im->width, im->height >> 1
, m_sourceWidth*2, m_rgbBuffer + m_sourceWidth*4);
, m_sourceWidth*8, m_rgbBuffer + m_sourceWidth*4);
}
else
{
LoadPlane( fields[FIELD_FULL][0], GL_RGBA, buf.flipindex
, im->width, im->height
, m_sourceWidth, m_rgbBuffer );
, m_sourceWidth*4, m_rgbBuffer );
}
}
else
Expand Down

0 comments on commit e956ed5

Please sign in to comment.