Skip to content

Commit 384c3ce

Browse files
committed
projectm: ensure that the GL context is attached
1 parent 09afe26 commit 384c3ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/visualization/projectm.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ static void *Thread( void *p_data )
280280
projectM::Settings settings;
281281
#endif
282282

283-
vlc_gl_MakeCurrent( gl );
283+
if( vlc_gl_MakeCurrent( gl ) != VLC_SUCCESS )
284+
{
285+
msg_Err( p_filter, "Can't attach gl context" );
286+
return NULL;
287+
}
284288

285289
/* Work-around the projectM locale bug */
286290
loc = newlocale (LC_NUMERIC_MASK, "C", NULL);

0 commit comments

Comments
 (0)