Permalink
Browse files

linuxrenderer: delete correct texture targets on reconfigure

  • Loading branch information...
1 parent 96d7fbb commit fc969e525002544a65cbf9660c4562cd4e2d45f1 @FernetMenta committed Mar 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
View
5 xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
@@ -249,6 +249,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 fc969e5

Please sign in to comment.