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()
This commit is contained in:
Mike Blumenkrantz 2015-10-26 13:51:14 -04:00
parent 6fa8452d48
commit 250b09abc5
1 changed files with 2 additions and 1 deletions

View 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();
}