From b8a7ed8a79ed6d9c911bc2be082f86bf2d92c48d Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 4 Apr 2010 16:56:30 +0000 Subject: 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 --- libvo/vo_gl2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libvo/vo_gl2.c') 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; -- cgit v1.2.3