summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-04 16:56:30 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-04-04 16:56:30 +0000
commitb8a7ed8a79ed6d9c911bc2be082f86bf2d92c48d (patch)
tree19dd7fb39e56dc13f5d81f01c726160fdc7d382d /libvo/vo_gl2.c
parentad26195a80a3325969d479b5e6bea308e64cf844 (diff)
downloadmpv-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_gl2.c')
-rw-r--r--libvo/vo_gl2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 9385a158b3..e59ec25e47 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -886,7 +886,6 @@ static int preinit(const char *arg)
}
if(!init_mpglcontext(&glctx, gltype)) goto err_out;
if (use_yuv == -1) {
- const char *extensions;
#ifdef CONFIG_GL_WIN32
if (config_w32(320, 200, 320, 200, VOFLAG_HIDDEN, "", 0) == -1)
#else
@@ -895,8 +894,7 @@ static int preinit(const char *arg)
goto err_out;
if (glctx.setGlWindow(&glctx) == SET_WINDOW_FAILED)
goto err_out;
- extensions = mpglGetString(GL_EXTENSIONS);
- use_yuv = strstr(extensions, "GL_ARB_fragment_program") ? 2 : 0;
+ use_yuv = glAutodetectYUVConversion();
}
return 0;