Commit 6d8e54de authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* backport opengl context locking bugfix from [19427]

parent 73e8c035
......@@ -316,11 +316,13 @@ static void Swap( vout_thread_t * p_vout )
static int Lock( vout_thread_t * p_vout )
{
vlc_mutex_lock( &p_vout->p_sys->lock );
CGLLockContext( (CGLContextObj)p_vout->p_sys->agl_ctx );
return 0;
}
static void Unlock( vout_thread_t * p_vout )
{
CGLUnlockContext( (CGLContextObj)p_vout->p_sys->agl_ctx );
vlc_mutex_unlock( &p_vout->p_sys->lock );
}
......
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