summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-06-30 00:28:46 +0200
committerJames Ross-Gowan <rossy@jrg.systems>2019-09-08 23:23:43 +1000
commit8d7960f6efff3d5c1d9c82ea9bd16f016e71ea24 (patch)
tree94dfa38a861699897639ddb86c56d16ad7da1d80 /wscript_build.py
parent4b25ec3a9d43638812adab38fe6177a57f81785a (diff)
downloadmpv-8d7960f6efff3d5c1d9c82ea9bd16f016e71ea24.tar.bz2
mpv-8d7960f6efff3d5c1d9c82ea9bd16f016e71ea24.tar.xz
vo_gpu: glx: move OML sync code to an independent file
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.)
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 3e9cfadd34..fb662c0d59 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -480,6 +480,7 @@ def build(ctx):
( "video/out/opengl/hwdec_rpi.c", "rpi" ),
( "video/out/opengl/hwdec_vdpau.c", "vdpau-gl-x11" ),
( "video/out/opengl/libmpv_gl.c", "gl" ),
+ ( "video/out/opengl/oml_sync.c", "gl-x11" ),
( "video/out/opengl/ra_gl.c", "gl" ),
( "video/out/opengl/utils.c", "gl" ),
( "video/out/vo.c" ),