Commit 36bb24ae authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* use locking on the OpenGL context (using two APIs, but since agl needs the...

* use locking on the OpenGL context (using two APIs, but since agl needs the cgl headers included, should be ok i think).
  refs #668
  refs #915

  I'm not sure its fixed, but this seems like a logical way to solve it. Freaking apple with their 5 OpenGL APIs.
parent 97be5f61
......@@ -289,11 +289,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