gles, fixed, more missing code
authorS. Davilla <davilla@4pi.com>
Fri, 27 Sep 2013 17:01:33 +0000 (13:01 -0400)
committerS. Davilla <davilla@4pi.com>
Fri, 27 Sep 2013 17:02:31 +0000 (13:02 -0400)
xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp

index a56171e..ee437a8 100644 (file)
@@ -170,6 +170,12 @@ bool CLinuxRendererGLES::ValidateRenderTarget()
   {
     CLog::Log(LOGNOTICE,"Using GL_TEXTURE_2D");
 
+    // function pointer for texture might change in
+    // call to LoadShaders
+    glFinish();
+    for (int i = 0 ; i < NUM_BUFFERS ; i++)
+      (this->*m_textureDelete)(i);
+
      // create the yuv textures
     LoadShaders();