From 17b52cc4a9a8d044bbeb2696f507a361df370e4e Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Sat, 4 Jan 2014 16:43:58 +0100 Subject: wayland/egl: add egl_context to the wayland state At the moment there are visual glitches when we resize the window. This happens because in wayland there a special function for resizing EGL windows. To prevent the glitches move the egl_context to the wayland state in wayland_common.h and add a new control function to gl_wayland.c to wrap the vo_wayland_control function to check for resize events. With the new control wrapper the glitches are gone and the resizing is fluid. --- video/out/wayland_common.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'video/out/wayland_common.h') diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 01ff09fa43..ac5fc3cf39 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -27,6 +27,12 @@ #include "config.h" +#if HAVE_GL_WAYLAND +#include +#include +#include +#endif + struct vo; struct vo_wayland_output { @@ -43,6 +49,20 @@ struct vo_wayland_state { struct vo *vo; struct mp_log* log; +#if HAVE_GL_WAYLAND + struct { + EGLSurface egl_surface; + + struct wl_egl_window *egl_window; + + struct { + EGLDisplay dpy; + EGLContext ctx; + EGLConfig conf; + } egl; + } egl_context; +#endif + struct { int fd; struct wl_display *display; -- cgit v1.2.3