(Wayland ctx) Add missing HAVE_EGL ifdefs
This commit is contained in:
parent
23e326a50b
commit
4a08b3e239
|
@ -694,12 +694,14 @@ static void handle_toplevel_config(void *data,
|
|||
wl->height = height;
|
||||
}
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
if (wl->win)
|
||||
wl_egl_window_resize(wl->win, width, height, 0, 0);
|
||||
else
|
||||
wl->win = wl_egl_window_create(wl->surface,
|
||||
wl->width * wl->buffer_scale,
|
||||
wl->height * wl->buffer_scale);
|
||||
#endif
|
||||
|
||||
wl->configured = false;
|
||||
}
|
||||
|
@ -774,12 +776,14 @@ static void handle_zxdg_toplevel_config(
|
|||
wl->height = height;
|
||||
}
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
if (wl->win)
|
||||
wl_egl_window_resize(wl->win, width, height, 0, 0);
|
||||
else
|
||||
wl->win = wl_egl_window_create(wl->surface,
|
||||
wl->width * wl->buffer_scale,
|
||||
wl->height * wl->buffer_scale);
|
||||
#endif
|
||||
|
||||
wl->configured = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue