From 8fb153cf8cab550121136aeb2710fc2d9f42fadc Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Sat, 2 Apr 2016 22:19:29 +0200 Subject: [PATCH] evas_gl_cocoa: fix segmentation fault at program exit Programs crashed on a segmentation fault when the last window was closed. The eng_output_idle_flush() function was removed... but since gl_cocoa does not properly use *_generic modules, the output_idle_flush() function called by the render engine was garbage (hence the segfault). Now nothing is done... but at least we don't crash anymore. --- src/modules/evas/engines/gl_cocoa/evas_engine.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_cocoa/evas_engine.c b/src/modules/evas/engines/gl_cocoa/evas_engine.c index 31bc120d25..215cf53b82 100644 --- a/src/modules/evas/engines/gl_cocoa/evas_engine.c +++ b/src/modules/evas/engines/gl_cocoa/evas_engine.c @@ -1119,6 +1119,11 @@ evgl_glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const #endif +static void +eng_output_idle_flush(void *data EINA_UNUSED) +{ +} + static void * eng_gl_api_get(void *data, int version EINA_UNUSED) { @@ -1337,7 +1342,7 @@ module_open(Evas_Module *em) ORD(context_cutout_add); ORD(context_cutout_clear); ORD(output_flush); - // ORD(output_idle_flush); + ORD(output_idle_flush); // ORD(output_dump); ORD(rectangle_draw); ORD(line_draw);