Permalink
Browse files

Merge pull request #31 from fritsch/xvba

Xvba
  • Loading branch information...
2 parents 46bda28 + 00ad66e commit 701e0f2849322c676941976e1c505a54367f0be0 @FernetMenta committed Mar 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
@@ -2464,7 +2464,8 @@ void CLinuxRendererGL::UploadVAAPITexture(int index)
void CLinuxRendererGL::DeleteXVBATexture(int index)
{
#ifdef HAVE_LIBXVBA
- YUVPLANE &plane = m_buffers[index].fields[0][1];
+ YUVPLANE &plane = m_buffers[index].fields[0][0];
+ YUVFIELDS &fields = m_buffers[index].fields;
if (m_buffers[index].xvba)
m_buffers[index].xvba->FinishGL();
@@ -2475,8 +2476,7 @@ void CLinuxRendererGL::DeleteXVBATexture(int index)
if(plane.id && glIsTexture(plane.id))
glDeleteTextures(1, &plane.id);
plane.id = 0;
- m_buffers[index].fields[0][0].id = 0;
-
+ fields[0][1].id = 0;
#endif
}

0 comments on commit 701e0f2

Please sign in to comment.