summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
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 /video/out/opengl/common.c
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 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index 3d24f9818f..660b4b2717 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -509,6 +509,7 @@ extern const struct mpgl_driver mpgl_driver_drm_egl;
extern const struct mpgl_driver mpgl_driver_cocoa;
extern const struct mpgl_driver mpgl_driver_wayland;
extern const struct mpgl_driver mpgl_driver_w32;
+extern const struct mpgl_driver mpgl_driver_angle;
extern const struct mpgl_driver mpgl_driver_rpi;
static const struct mpgl_driver *const backends[] = {
@@ -521,6 +522,9 @@ static const struct mpgl_driver *const backends[] = {
#if HAVE_GL_WIN32
&mpgl_driver_w32,
#endif
+#if HAVE_EGL_ANGLE
+ &mpgl_driver_angle,
+#endif
#if HAVE_GL_WAYLAND
&mpgl_driver_wayland,
#endif