gl-renderer: remove platform_attribs

No caller ever used anything but NULL here, so just use NULL to simplify code.

In fact, no EGL platform defined today even defines any platform attributes
except the X11 platform for choosing a non-default SCREEN.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 5 years ago committed by Pekka Paalanen
parent b347edcc50
commit 192ce0ae0b
  1. 1
      libweston/backend-drm/drm.c
  2. 1
      libweston/backend-wayland/wayland.c
  3. 2
      libweston/backend-x11/x11.c
  4. 3
      libweston/renderer-gl/gl-renderer.c
  5. 1
      libweston/renderer-gl/gl-renderer.h

@ -748,7 +748,6 @@ drm_backend_create_gl_renderer(struct drm_backend *b)
if (gl_renderer->display_create(b->compositor,
EGL_PLATFORM_GBM_KHR,
(void *)b->gbm,
NULL,
gl_renderer->opaque_attribs,
format,
n_formats) < 0) {

@ -2769,7 +2769,6 @@ wayland_backend_create(struct weston_compositor *compositor,
if (gl_renderer->display_create(compositor,
EGL_PLATFORM_WAYLAND_KHR,
b->parent.wl_display,
NULL,
gl_renderer->alpha_attribs,
NULL,
0) < 0) {

@ -1809,7 +1809,7 @@ init_gl_renderer(struct x11_backend *b)
return -1;
ret = gl_renderer->display_create(b->compositor, EGL_PLATFORM_X11_KHR,
(void *) b->dpy, NULL,
(void *) b->dpy,
gl_renderer->opaque_attribs, NULL, 0);
return ret;

@ -3752,7 +3752,6 @@ static int
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)
@ -3797,7 +3796,7 @@ gl_renderer_display_create(struct weston_compositor *ec,
if (get_platform_display && platform) {
gr->egl_display = get_platform_display(platform,
native_display,
platform_attribs);
NULL);
}
}

@ -63,7 +63,6 @@ struct gl_renderer_interface {
int (*display_create)(struct weston_compositor *ec,
EGLenum platform,
void *native_display,
const EGLint *platform_attribs,
const EGLint *config_attribs,
const EGLint *visual_id,
const int n_ids);

Loading…
Cancel
Save