diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-08-26 16:39:05 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-08-26 16:39:05 +0200 |
commit | beab54506e61bc080880e827e351439f76542e68 (patch) | |
tree | 7f0fedac91c84423a7b543f5917de1ad4a333b45 /video/out/gl_wayland.c | |
parent | 5895d6c24fa3b66230fe1f5177af7f65b4c6a706 (diff) | |
download | mpv-beab54506e61bc080880e827e351439f76542e68.tar.bz2 mpv-beab54506e61bc080880e827e351439f76542e68.tar.xz |
wayland: don't create our own log context
This was more problematic than useful ([vo/wayland/wayland])
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r-- | video/out/gl_wayland.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c index cb684eb09d..3c08a5726d 100644 --- a/video/out/gl_wayland.c +++ b/video/out/gl_wayland.c @@ -27,7 +27,6 @@ #include "gl_common.h" struct egl_context { - struct mp_log *log; EGLSurface egl_surface; struct wl_egl_window *egl_window; @@ -53,10 +52,10 @@ static void egl_resize(struct vo_wayland_state *wl, &wl->window.width, &wl->window.height); - MP_VERBOSE(ctx, "resizing %dx%d -> %dx%d\n", wl->window.width, - wl->window.height, - width, - height); + MP_DBG(wl->vo, "resizing %dx%d -> %dx%d\n", wl->window.width, + wl->window.height, + width, + height); if (x != 0) x = wl->window.width - width; @@ -105,7 +104,7 @@ 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); + MP_VERBOSE(wl->vo, "EGL version %d.%d\n", major, minor); EGLint context_attribs[] = { EGL_CONTEXT_MAJOR_VERSION_KHR, @@ -183,8 +182,6 @@ 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"); - if (!vo_wayland_config(ctx->vo, d_width, d_height, flags)) return false; |