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

projectM: make GL context current

parent a368cd48
...@@ -351,6 +351,8 @@ static void *Thread( void *p_data ) ...@@ -351,6 +351,8 @@ static void *Thread( void *p_data )
goto error; goto error;
} }
vlc_gl_MakeCurrent( gl );
/* Work-around the projectM locale bug */ /* Work-around the projectM locale bug */
loc = newlocale (LC_NUMERIC_MASK, "C", NULL); loc = newlocale (LC_NUMERIC_MASK, "C", NULL);
oldloc = uselocale (loc); oldloc = uselocale (loc);
...@@ -446,6 +448,7 @@ static void *Thread( void *p_data ) ...@@ -446,6 +448,7 @@ static void *Thread( void *p_data )
uselocale (oldloc); uselocale (oldloc);
freelocale (loc); freelocale (loc);
} }
vlc_gl_ReleaseCurrent( gl );
return NULL; return NULL;
} }
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
...@@ -464,6 +467,7 @@ static void *Thread( void *p_data ) ...@@ -464,6 +467,7 @@ static void *Thread( void *p_data )
assert(0); assert(0);
error: error:
vlc_gl_ReleaseCurrent( gl );
p_sys->b_error = true; p_sys->b_error = true;
vlc_sem_post( &p_sys->ready ); vlc_sem_post( &p_sys->ready );
return NULL; return NULL;
......
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