# HG changeset patch # User reimar # Date 1278358332 0 # Node ID 0f48a746def1faff82d1e8d232865f84a372b790 # Parent 558b94cefb613bc0368d972b99702151f38833bc Move declaration to where it is actually used. diff -r 558b94cefb61 -r 0f48a746def1 libvo/vo_gl.c --- a/libvo/vo_gl.c Mon Jul 05 19:23:56 2010 +0000 +++ b/libvo/vo_gl.c Mon Jul 05 19:32:12 2010 +0000 @@ -72,14 +72,6 @@ #undef info #undef preinit -#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; @@ -597,6 +589,7 @@ #endif #ifdef CONFIG_GL_X11 if (glctx.type == GLTYPE_X11) { + static int wsGLXAttrib[] = {GLX_RGBA, GLX_RED_SIZE, 1, GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, GLX_DOUBLEBUFFER, None}; XVisualInfo *vinfo=glXChooseVisual( mDisplay,mScreen,wsGLXAttrib ); if (vinfo == NULL) {