[MPlayer-cvslog] r31068 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Sun Apr 25 00:13:58 CEST 2010


Author: reimar
Date: Sun Apr 25 00:13:57 2010
New Revision: 31068

Log:
Add workaroound for yuv=7 mode - does hurt speed but not much
and this code should only be used when it is the only option.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat Apr 24 19:15:28 2010	(r31067)
+++ trunk/libvo/gl_common.c	Sun Apr 25 00:13:57 2010	(r31068)
@@ -1510,12 +1510,16 @@ void glDisableYUVConversion(GLenum targe
       mpglDisable(GL_FRAGMENT_SHADER_ATI);
       break;
     case YUV_CONVERSION_TEXT_FRAGMENT:
+      mpglDisable(GL_TEXT_FRAGMENT_SHADER_ATI);
+      // HACK: at least the 10.5 Radeon drivers are broken
+      // and without this disable the texture units while
+      // the program is still running
+      mpglFlush();
       mpglActiveTexture(GL_TEXTURE1);
       mpglDisable(target);
       mpglActiveTexture(GL_TEXTURE2);
       mpglDisable(target);
       mpglActiveTexture(GL_TEXTURE0);
-      mpglDisable(GL_TEXT_FRAGMENT_SHADER_ATI);
       break;
     case YUV_CONVERSION_FRAGMENT_LOOKUP3D:
     case YUV_CONVERSION_FRAGMENT_LOOKUP:


More information about the MPlayer-cvslog mailing list