diff libvo/vo_gl.c @ 30964:a5c6b37b3af6

Factor out the YUV->RGB conversion auto-selection and also enable auto-selection of ATI fragment shaders since they should do accurate conversions now.
author reimar
date Sun, 04 Apr 2010 16:56:30 +0000
parents 55917a674d7d
children 38a0aa0ac675
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sun Apr 04 16:48:46 2010 +0000
+++ b/libvo/vo_gl.c	Sun Apr 04 16:56:30 2010 +0000
@@ -480,7 +480,8 @@
   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");