From f81cd34fe0f145702ac225f13c5de7007b9d7320 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 24 Apr 2010 22:13:57 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31068 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/gl_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 8cdc42766a..a25a3ba9d4 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1510,12 +1510,16 @@ void glDisableYUVConversion(GLenum target, int type) { 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: