evas gl: init evgl during eng_gl_get_pixels_pre()
authorMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 26 Oct 2015 17:51:14 +0000 (13:51 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 26 Oct 2015 17:52:27 +0000 (13:52 -0400)
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

index 2cf26ab..d59a132 100644 (file)
@@ -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();
 }