mirror of
https://github.com/libretro/RetroArch
synced 2025-04-25 09:02:44 +00:00
(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;
|
wl->height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_EGL
|
||||||
if (wl->win)
|
if (wl->win)
|
||||||
wl_egl_window_resize(wl->win, width, height, 0, 0);
|
wl_egl_window_resize(wl->win, width, height, 0, 0);
|
||||||
else
|
else
|
||||||
wl->win = wl_egl_window_create(wl->surface,
|
wl->win = wl_egl_window_create(wl->surface,
|
||||||
wl->width * wl->buffer_scale,
|
wl->width * wl->buffer_scale,
|
||||||
wl->height * wl->buffer_scale);
|
wl->height * wl->buffer_scale);
|
||||||
|
#endif
|
||||||
|
|
||||||
wl->configured = false;
|
wl->configured = false;
|
||||||
}
|
}
|
||||||
@ -774,12 +776,14 @@ static void handle_zxdg_toplevel_config(
|
|||||||
wl->height = height;
|
wl->height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_EGL
|
||||||
if (wl->win)
|
if (wl->win)
|
||||||
wl_egl_window_resize(wl->win, width, height, 0, 0);
|
wl_egl_window_resize(wl->win, width, height, 0, 0);
|
||||||
else
|
else
|
||||||
wl->win = wl_egl_window_create(wl->surface,
|
wl->win = wl_egl_window_create(wl->surface,
|
||||||
wl->width * wl->buffer_scale,
|
wl->width * wl->buffer_scale,
|
||||||
wl->height * wl->buffer_scale);
|
wl->height * wl->buffer_scale);
|
||||||
|
#endif
|
||||||
|
|
||||||
wl->configured = false;
|
wl->configured = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user