mirror of https://github.com/mpv-player/mpv
ac275a823d
this fixes a crash on quit, when a CATransaction from a system owned thread/event is happening at the same time. locking the context synchronises these access and prevents the race condition. the draw operation induced by any display call from the CAOpenGLLayer doesn't need that lock, since the display function already does lock that current context. Fixes #11681 |
||
---|---|---|
.. | ||
common.swift | ||
gl_layer.swift | ||
metal_layer.swift | ||
title_bar.swift | ||
view.swift | ||
window.swift |