From: Thiep Ha Date: Thu, 7 Jul 2016 01:51:56 +0000 (+0900) Subject: evas_gl_cocoa: fix segmentation fault at program exit X-Git-Tag: submit/tizen/20160711.050109~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c95cac1b47447807a2a4b6d96d1d13e6abc4105;p=platform%2Fupstream%2Fefl.git evas_gl_cocoa: fix segmentation fault at program exit 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). Change-Id: Idc7ef41fd2933ebb4cea75c9f592d5637b636cba Signed-off-by: Thiep Ha --- diff --git a/src/modules/evas/engines/gl_cocoa/evas_engine.c b/src/modules/evas/engines/gl_cocoa/evas_engine.c index 051fb0b..68a29d3 100644 --- a/src/modules/evas/engines/gl_cocoa/evas_engine.c +++ b/src/modules/evas/engines/gl_cocoa/evas_engine.c @@ -1142,6 +1142,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) {