mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-30 20:10:13 +01:00
gl-renderer: fix typo native_window to native_display
It is a display, not a window. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
7ad2871d75
commit
b347edcc50
2 changed files with 10 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue