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>
This commit is contained in:
committed by
Pekka Paalanen
parent
b347edcc50
commit
192ce0ae0b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user