forked from enlightenment/efl
ecore_evas_wayland: Add NULL checking for surface
Summary: Need to NULL check before using surface like other cases. Test Plan: N/A Reviewers: jpeg, raster, ManMower, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4301
This commit is contained in:
parent
4902202731
commit
ceb0eab402
|
@ -1368,10 +1368,13 @@ _ecore_evas_wl_common_render_flush_pre(void *data, Evas *evas EINA_UNUSED, void
|
|||
{
|
||||
Ecore_Evas *ee = data;
|
||||
Ecore_Evas_Engine_Wl_Data *wdata;
|
||||
struct wl_surface *surf;
|
||||
|
||||
wdata = ee->engine.data;
|
||||
wdata->anim_callback =
|
||||
wl_surface_frame(ecore_wl2_window_surface_get(wdata->win));
|
||||
surf = ecore_wl2_window_surface_get(wdata->win);
|
||||
if (!surf) return;
|
||||
|
||||
wdata->anim_callback = wl_surface_frame(surf);
|
||||
wl_callback_add_listener(wdata->anim_callback, &_anim_listener, ee);
|
||||
ecore_evas_manual_render_set(ee, 1);
|
||||
if (wdata->win->configure_ack && wdata->win->configure_serial)
|
||||
|
|
Loading…
Reference in New Issue