diff options
author | wm4 <wm4@nowhere> | 2016-09-13 15:38:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-13 18:03:43 +0200 |
commit | 6dc9280b580835d37fa8a8664b6bc142254ce1a1 (patch) | |
tree | d778fa0999b0654f9e4263c5ece43aa44863c9e0 /video/out/opengl/context.c | |
parent | 3905c46f9a0f86b7e5fc40e7408cda1f695d4b57 (diff) | |
download | mpv-6dc9280b580835d37fa8a8664b6bc142254ce1a1.tar.bz2 mpv-6dc9280b580835d37fa8a8664b6bc142254ce1a1.tar.xz |
vo_opengl: factor some EGL context creation code
Add a function to egl_helpers.c for creating an EGL context and make
context_x11egl.c use it. This is meant to be generic, and should work
with other windowing APIs as well. The other EGL-using code in mpv can
be switched to it.
Diffstat (limited to 'video/out/opengl/context.c')
-rw-r--r-- | video/out/opengl/context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index 21e6d6799e..a8058fb18c 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -155,6 +155,8 @@ static MPGLContext *init_backend(struct vo *vo, const struct mpgl_driver *driver .vo = vo, .driver = driver, }; + if (probing) + vo_flags |= VOFLAG_PROBING; bool old_probing = vo->probing; vo->probing = probing; // hack; kill it once backends are separate MP_VERBOSE(vo, "Initializing OpenGL backend '%s'\n", ctx->driver->name); |