When wayland session recovery happens, we can end up down this path
with no gl context when elm reprocesses its config file.
That callback fires long before we've re-set up our wayland connection
so we can't possibly have a valid gl context yet.
Prevent that from crashing.
re->window_use(re->software.ob);
gl_context = re->window_gl_context_get(re->software.ob);
+ if (!gl_context) return;
tmp_size = evas_common_image_get_cache();
evas_common_image_set_cache(0);
evas_common_image_set_cache(bytes);
evas_common_rgba_image_scalecache_size_set(bytes);
- evas_gl_common_image_cache_flush(gl_context);
+ if (gl_context) evas_gl_common_image_cache_flush(gl_context);
}
static int