mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
window.c: Include wayland-egl.h before EGL headers so we get the right platform
This commit is contained in:
parent
43c63e59a7
commit
297d6dd442
2 changed files with 5 additions and 5 deletions
|
|
@ -105,7 +105,7 @@ init_egl(struct display *display)
|
|||
EGLBoolean ret;
|
||||
|
||||
display->egl.dpy =
|
||||
eglGetDisplay((EGLNativeDisplayType) display->native);
|
||||
eglGetDisplay(display->native);
|
||||
assert(display->egl.dpy);
|
||||
|
||||
ret = eglInitialize(display->egl.dpy, &major, &minor);
|
||||
|
|
@ -205,7 +205,7 @@ create_surface(struct window *window)
|
|||
window->egl_surface =
|
||||
eglCreateWindowSurface(display->egl.dpy,
|
||||
display->egl.conf,
|
||||
(EGLNativeWindowType) window->native,
|
||||
window->native,
|
||||
NULL);
|
||||
|
||||
wl_surface_map_toplevel(window->surface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue