summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-11-14 00:04:30 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2015-11-18 23:07:33 +1100
commite76ec2c96300c828b2a96ae71199128295f8451b (patch)
tree3648496beafc071155ba16b898c16b560b966d7a /wscript
parenta3195381d17074e95cc5367c8136363251051fe2 (diff)
downloadmpv-e76ec2c96300c828b2a96ae71199128295f8451b.tar.bz2
mpv-e76ec2c96300c828b2a96ae71199128295f8451b.tar.xz
vo_opengl: add initial ANGLE support
ANGLE is a GLES2 implementation for Windows that uses Direct3D 11 for rendering, enabling vo_opengl to work on systems with poor OpenGL drivers and bypassing some of the problems with native GL, such as VSync in fullscreen mode. Unfortunately, using GLES2 means that most of vo_opengl's advanced features will not work, however ANGLE is under rapid development and GLES3 support is supposed to be coming soon.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/wscript b/wscript
index 858dcc901c..0f113002ba 100644
--- a/wscript
+++ b/wscript
@@ -659,6 +659,14 @@ video_output_features = [
'func': check_statement('windows.h', 'wglCreateContext(0)',
lib='opengl32')
} , {
+ 'name': '--egl-angle',
+ 'desc': 'OpenGL Win32 ANGLE Backend',
+ 'deps_any': [ 'os-win32', 'os-cygwin' ],
+ 'groups': [ 'gl' ],
+ 'func': check_statement(['EGL/egl.h'],
+ 'eglCreateWindowSurface(0, 0, 0, 0)',
+ lib='EGL')
+ } , {
'name': '--vdpau',
'desc': 'VDPAU acceleration',
'deps': [ 'x11' ],