diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index ae4b8ff896..e3241688d7 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -407,7 +407,7 @@ static bool gfx_ctx_wl_set_video_mode(void *data, goto error; } - if (!egl_create_surface(&wl->egl, (EGLNativeWindowType)wl->win)) + if (!egl_create_surface(&wl->egl, (void*)wl->win)) goto error; egl_set_swap_interval(&wl->egl, wl->egl.interval); #endif