Permalink
Browse files

linuxrenderer: delete correct texture targets on reconfigure

  • Loading branch information...
1 parent 4d5930f commit 632080e1bc90f3b460ecad966825b7b6fb9d44aa @FernetMenta committed with Mar 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
@@ -247,6 +247,11 @@ bool CLinuxRendererGL::ValidateRenderTarget()
else
CLog::Log(LOGNOTICE,"Using GL_TEXTURE_2D");
+ // function pointer for texture might change in
+ // call to LoadShaders
+ for (int i = 0 ; i < m_NumYV12Buffers ; i++)
+ (this->*m_textureDelete)(i);
+
// create the yuv textures
LoadShaders();

0 comments on commit 632080e

Please sign in to comment.