Commit f0d6d840 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

GLX: minor fixes

parent 01fdef51
...@@ -238,11 +238,11 @@ int InitGLX13( vout_thread_t *p_vout ) ...@@ -238,11 +238,11 @@ int InitGLX13( vout_thread_t *p_vout )
XVisualInfo *p_vi; XVisualInfo *p_vi;
int p_attr[] = { GLX_RED_SIZE, 5, GLX_GREEN_SIZE, 5, int p_attr[] = { GLX_RED_SIZE, 5, GLX_GREEN_SIZE, 5,
GLX_BLUE_SIZE, 5, GLX_DOUBLEBUFFER, True, GLX_BLUE_SIZE, 5, GLX_DOUBLEBUFFER, True,
GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT, 0 }; GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT, None, };
/* Get the FB configuration */ /* Get the FB configuration */
p_fbconfs = glXChooseFBConfig( p_sys->p_display, 0, p_attr, &i_nbelem ); p_fbconfs = glXChooseFBConfig( p_sys->p_display, 0, p_attr, &i_nbelem );
if( (i_nbelem <= 0) || !p_fbconfs ) if( !p_fbconfs || (i_nbelem <= 0) )
{ {
msg_Err( p_vout, "Cannot get FB configurations"); msg_Err( p_vout, "Cannot get FB configurations");
if( p_fbconfs ) XFree( p_fbconfs ); if( p_fbconfs ) XFree( p_fbconfs );
...@@ -266,6 +266,7 @@ int InitGLX13( vout_thread_t *p_vout ) ...@@ -266,6 +266,7 @@ int InitGLX13( vout_thread_t *p_vout )
if( p_sys->gwnd == None ) if( p_sys->gwnd == None )
{ {
msg_Err( p_vout, "Cannot create GLX window" ); msg_Err( p_vout, "Cannot create GLX window" );
XFree( p_fbconfs );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment