changeset 31570:0f48a746def1

Move declaration to where it is actually used.
author reimar
date Mon, 05 Jul 2010 19:32:12 +0000
parents 558b94cefb61
children c45b2b0d48ff
files libvo/vo_gl.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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)
     {