From 250b09abc535731f8c0084085820402335752209 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 26 Oct 2015 13:51:14 -0400 Subject: [PATCH] evas gl: init evgl during eng_gl_get_pixels_pre() when the first render is an image without a native surface, evgl_init() will not be called before this point, resulting in an abort() --- src/modules/evas/engines/gl_generic/evas_engine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c index 2cf26ab..d59a132 100644 --- a/src/modules/evas/engines/gl_generic/evas_engine.c +++ b/src/modules/evas/engines/gl_generic/evas_engine.c @@ -1660,8 +1660,9 @@ eng_gl_get_pixels_set(void *data, void *get_pixels, void *get_pixels_data, void } static void -eng_gl_get_pixels_pre(void *data EINA_UNUSED) +eng_gl_get_pixels_pre(void *data) { + EVGLINIT(data, ); evgl_get_pixels_pre(); } -- 2.7.4