From 3311729f3c56d5d238450d6d8726e8089f31b86a Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 11 Aug 2014 11:29:33 -0400 Subject: [PATCH] wayland-egl: Fix Outbuf structure not having evas & engine info gl_generic functions expect the Outbuf to contain the canvas, so we fixed the eng_window_new function to accept that, And the engine info. This simplifies the calls to eng_window_new. @fix Signed-off-by: Chris Michael --- .../evas/engines/wayland_egl/evas_wl_main.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c index 511f6267f1..33a773f42b 100644 --- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c +++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c @@ -8,7 +8,7 @@ static EGLContext context = EGL_NO_CONTEXT; static int win_count = 0; Outbuf * -eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen, int depth, int w, int h, int indirect EINA_UNUSED, int alpha, int rot, Render_Engine_Swap_Mode swap_mode) +eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int h, Render_Engine_Swap_Mode swap_mode) { Outbuf *gw; int context_attrs[3]; @@ -23,15 +23,17 @@ eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen, return NULL; win_count++; - gw->disp = disp; - gw->surface = surface; - gw->screen = screen; - gw->depth = depth; + gw->info = einfo; + gw->evas = evas; gw->w = w; gw->h = h; - gw->alpha = alpha; - gw->rot = rot; gw->swap_mode = swap_mode; + gw->disp = einfo->info.display; + gw->surface = einfo->info.surface; + gw->screen = einfo->info.screen; + gw->depth = einfo->info.depth; + gw->alpha = einfo->info.destination_alpha; + gw->rot = einfo->info.rotation; context_attrs[0] = EGL_CONTEXT_CLIENT_VERSION; context_attrs[1] = 2; @@ -175,7 +177,7 @@ eng_window_new(struct wl_display *disp, struct wl_surface *surface, int screen, gw->gl_context->eglctxt = gw->egl_context[0]; eng_window_use(gw); - glsym_evas_gl_common_context_resize(gw->gl_context, w, h, rot); + glsym_evas_gl_common_context_resize(gw->gl_context, w, h, gw->rot); gw->surf = EINA_TRUE;