diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-04 16:56:30 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-04 16:56:30 +0000 |
commit | b8a7ed8a79ed6d9c911bc2be082f86bf2d92c48d (patch) | |
tree | 19dd7fb39e56dc13f5d81f01c726160fdc7d382d /libvo/vo_gl.c | |
parent | ad26195a80a3325969d479b5e6bea308e64cf844 (diff) | |
download | mpv-b8a7ed8a79ed6d9c911bc2be082f86bf2d92c48d.tar.bz2 mpv-b8a7ed8a79ed6d9c911bc2be082f86bf2d92c48d.tar.xz |
Factor out the YUV->RGB conversion auto-selection and also
enable auto-selection of ATI fragment shaders since they
should do accurate conversions now.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31006 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index d27a72e3a2..6c80eeddfc 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -480,7 +480,8 @@ static void autodetectGlExtensions(void) { if (ati_hack == -1) ati_hack = ati_broken_pbo; if (force_pbo == -1) force_pbo = strstr(extensions, "_pixel_buffer_object") ? is_ati : 0; if (use_rectangle == -1) use_rectangle = strstr(extensions, "_texture_non_power_of_two") ? 0 : 0; - if (use_yuv == -1) use_yuv = strstr(extensions, "GL_ARB_fragment_program") ? 2 : 0; + if (use_yuv == -1) + use_yuv = glAutodetectYUVConversion(); if (is_ati && (lscale == 1 || lscale == 2 || cscale == 1 || cscale == 2)) mp_msg(MSGT_VO, MSGL_WARN, "[gl] Selected scaling mode may be broken on ATI cards.\n" "Tell _them_ to fix GL_REPEAT if you have issues.\n"); |