It was trying to use access a struct for egl_disp after the struct
was freed..
#endif
if (re->win)
{
+ if (gl_wins == 1) evgl_engine_shutdown(re);
+
#ifdef GL_GLES
eng_window_free(re->win);
#else
if (re->rects_prev[1]) evas_common_tilebuf_free_render_rects(re->rects_prev[1]);
if (re->rects_prev[2]) evas_common_tilebuf_free_render_rects(re->rects_prev[2]);
- if (gl_wins == 0) evgl_engine_shutdown(re);
free(re);
}
if (re->win)
{
+ if (gl_wins == 1) evgl_engine_shutdown(re);
+
eng_window_free(re->win);
gl_wins--;
}
if (re->rects_prev[2])
evas_common_tilebuf_free_render_rects(re->rects_prev[2]);
- if (gl_wins == 0) evgl_engine_shutdown(re);
free(re);
}