summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/oml_sync.h
Commit message (Collapse)AuthorAgeFilesLines
* vo_gpu: glx: move OML sync code to an independent filewm42019-09-081-0/+28
So the next commit can make EGL use it. EGL has a quite similar function, that practically works the same. Although it's relatively trivial, it's still tricky, and probably shouldn't end up as duplicated code. There are no functional changes, except initialization, and how failure of the glXGetSyncValues call is handled. Also, some comments mention the EGL extension. Note that there's no intention for this code to handle anything else than the very specific OML sync extension (and its EGL equivalent). This is just too weirdly specific to the weird idiosyncrasies of the extension, and it makes no sense to extend it to handle anything else. (Such as Wayland or DXGI presentation feedback.)