Permalink
Browse files

linuxrenderer: proper cleanup

  • Loading branch information...
1 parent 699981c commit 13517cb5934a974252d47f9fc61e9fe99ff321ac @FernetMenta committed Sep 10, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
View
10 xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
@@ -256,6 +256,15 @@ bool CLinuxRendererGL::ValidateRenderTarget()
else
CLog::Log(LOGNOTICE,"Using GL_TEXTURE_2D");
+ // function pointer for texture might change in
+ // call to LoadShaders
+ glFinish();
+ for (int i = 0 ; i < m_NumYV12Buffers ; i++)
+ (this->*m_textureDelete)(i);
+
+ // trigger update of video filters
+ m_scalingMethodGui = (ESCALINGMETHOD)-1;
+
// create the yuv textures
LoadShaders();
@@ -593,6 +602,7 @@ void CLinuxRendererGL::Flush()
glFinish();
m_bValidated = false;
+ m_fbo.fbo.Cleanup();
}
void CLinuxRendererGL::Update(bool bPauseDrawing)

0 comments on commit 13517cb

Please sign in to comment.