From 42a8c42eb2cd66debdab3c1da79bfcd290a27964 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 5 Jul 2010 19:32:12 +0000 Subject: vo_gl: cleanup Move declaration to where it is actually used. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31636 b3059339-0415-0410-9bf9-f77b7e298cf2 Use a more sensible variable name. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31637 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'libvo/vo_gl.c') diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 073ef90815..0708769553 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -91,14 +91,6 @@ const struct vo_driver video_out_gl_nosw = } }; -#ifdef CONFIG_GL_X11 -static int wsGLXAttrib[] = { GLX_RGBA, - GLX_RED_SIZE,1, - GLX_GREEN_SIZE,1, - GLX_BLUE_SIZE,1, - GLX_DOUBLEBUFFER, - None }; -#endif static MPGLContext glctx; static int use_osd; @@ -616,7 +608,8 @@ static int create_window(uint32_t d_width, uint32_t d_height, uint32_t flags, co #endif #ifdef CONFIG_GL_X11 if (glctx.type == GLTYPE_X11) { - XVisualInfo *vinfo=glXChooseVisual( mDisplay,mScreen,wsGLXAttrib ); + static int default_glx_attribs[] = {GLX_RGBA, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, GLX_DOUBLEBUFFER, None}; + XVisualInfo *vinfo=glXChooseVisual(mDisplay, mScreen, default_glx_attribs); if (vinfo == NULL) { mp_msg(MSGT_VO, MSGL_ERR, "[gl] no GLX support present\n"); -- cgit v1.2.3