[MPlayer-cvslog] r31636 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Mon Jul 5 21:32:13 CEST 2010


Author: reimar
Date: Mon Jul  5 21:32:12 2010
New Revision: 31636

Log:
Move declaration to where it is actually used.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Mon Jul  5 21:23:56 2010	(r31635)
+++ trunk/libvo/vo_gl.c	Mon Jul  5 21:32:12 2010	(r31636)
@@ -72,14 +72,6 @@ const LIBVO_EXTERN(gl_nosw)
 #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 @@ static int create_window(uint32_t d_widt
 #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)
     {


More information about the MPlayer-cvslog mailing list