Multiple instances of VLC macOS vouts hang using layer backing
This issues is to track an Apple bug reported upstream as rdar://37064579 and can be found on Open Radar.
== Summary: When using multiple NSOpenGLViews and rendering content for them in a background thread, it hangs on the CGLFlushDrawable call on the context, when the windows contentView is layer backed.
== Steps to Reproduce:
- Create a subclass of NSOpenGLView with rendering on a different thread, like by using a CVDisplayLink.
- Make the contentView of a NSWindow layer backed and add multiple (three or four) subviews with the subclassed NSOpenGLView class.
- Start the application
== Expected Results: The content in the OpenGL views should render fine, no hangs should happen.
== Actual Results: The program hangs on a call to CGLFlushDrawable.