summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-05 19:32:12 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:20 +0200
commit42a8c42eb2cd66debdab3c1da79bfcd290a27964 (patch)
tree2c03d875e6f253de0df5535ea908b6c76e0ad163 /libvo
parentf743dceceb1711a58ede4ed732b33a1d4e1c73fd (diff)
downloadmpv-42a8c42eb2cd66debdab3c1da79bfcd290a27964.tar.bz2
mpv-42a8c42eb2cd66debdab3c1da79bfcd290a27964.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c11
1 files changed, 2 insertions, 9 deletions
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");