window.c: Include wayland-egl.h before EGL headers so we get the right platform

This commit is contained in:
Kristian Høgsberg 2011-02-09 10:51:15 -05:00
parent 43c63e59a7
commit 297d6dd442
2 changed files with 5 additions and 5 deletions

View file

@ -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);