From b347edcc504e27aadbd42bf24b7da57c94f2e3ea Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 19 Sep 2019 12:17:28 +0300 Subject: [PATCH] gl-renderer: fix typo native_window to native_display It is a display, not a window. Signed-off-by: Pekka Paalanen --- libweston/renderer-gl/gl-renderer.c | 14 +++++++++----- libweston/renderer-gl/gl-renderer.h | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index 6c2a56d1..95348cda 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -3749,9 +3749,13 @@ gl_renderer_create_pbuffer_surface(struct gl_renderer *gr) { } static int -gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform, - void *native_window, const EGLint *platform_attribs, - const EGLint *config_attribs, const EGLint *visual_id, int n_ids) +gl_renderer_display_create(struct weston_compositor *ec, + EGLenum platform, + void *native_display, + const EGLint *platform_attribs, + const EGLint *config_attribs, + const EGLint *visual_id, + int n_ids) { struct gl_renderer *gr; EGLint major, minor; @@ -3792,7 +3796,7 @@ gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform, * appropriate extension checks have been done. */ if (get_platform_display && platform) { gr->egl_display = get_platform_display(platform, - native_window, + native_display, platform_attribs); } } @@ -3801,7 +3805,7 @@ gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform, weston_log("warning: either no EGL_EXT_platform_base " "support or specific platform support; " "falling back to eglGetDisplay.\n"); - gr->egl_display = eglGetDisplay(native_window); + gr->egl_display = eglGetDisplay(native_display); } if (gr->egl_display == EGL_NO_DISPLAY) { diff --git a/libweston/renderer-gl/gl-renderer.h b/libweston/renderer-gl/gl-renderer.h index cd4cef21..784da92a 100644 --- a/libweston/renderer-gl/gl-renderer.h +++ b/libweston/renderer-gl/gl-renderer.h @@ -62,7 +62,7 @@ struct gl_renderer_interface { int (*display_create)(struct weston_compositor *ec, EGLenum platform, - void *native_window, + void *native_display, const EGLint *platform_attribs, const EGLint *config_attribs, const EGLint *visual_id,