Mercurial > mplayer.hg
changeset 31026:0b0266c8ec53
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.
author | reimar |
---|---|
date | Sat, 24 Apr 2010 22:13:57 +0000 |
parents | f3897eb85625 |
children | bbe66cf05445 |
files | libvo/gl_common.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.c Sat Apr 24 17:15:28 2010 +0000 +++ b/libvo/gl_common.c Sat Apr 24 22:13:57 2010 +0000 @@ -1510,12 +1510,16 @@ 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: