summaryrefslogtreecommitdiffstats
path: root/video/out/gl_wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r--video/out/gl_wayland.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c
index 1b5a21ec43..0381177292 100644
--- a/video/out/gl_wayland.c
+++ b/video/out/gl_wayland.c
@@ -27,6 +27,7 @@
#include "gl_common.h"
struct egl_context {
+ struct mp_log *log;
EGLSurface egl_surface;
struct wl_egl_window *egl_window;
@@ -96,6 +97,8 @@ static void egl_resize_func(struct vo_wayland_state *wl,
else
y = 0;
+ MP_VERBOSE(ctx, "resizing %dx%d -> %dx%d\n", wl->window.width,
+ wl->window.height, width, height);
wl_egl_window_resize(ctx->egl_window, width, height, x, y);
wl->window.width = width;
@@ -134,6 +137,8 @@ static bool egl_create_context(struct vo_wayland_state *wl,
if (eglInitialize(egl_ctx->egl.dpy, &major, &minor) != EGL_TRUE)
return false;
+ MP_VERBOSE(egl_ctx, "EGL version %d.%d\n", major, minor);
+
EGLint context_attribs[] = {
EGL_CONTEXT_MAJOR_VERSION_KHR,
MPGL_VER_GET_MAJOR(ctx->requested_gl_version),
@@ -210,6 +215,8 @@ static bool config_window_wayland(struct MPGLContext *ctx,
bool enable_alpha = !!(flags & VOFLAG_ALPHA);
bool ret = false;
+ egl_ctx->log = mp_log_new(egl_ctx, wl->log, "EGL");
+
wl->window.resize_func = egl_resize_func;
wl->window.resize_func_data = (void*) egl_ctx;