Permalink
Browse files

xvba: backport 1a71873 for xvba

  • Loading branch information...
fritsch committed Mar 20, 2012
1 parent 46bda28 commit 00ad66e07a4afde9cb9044093b657d178ca352e9
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 00ad66e

Please sign in to comment.