From: Jean Guyomarc'h Date: Wed, 8 Mar 2017 23:31:51 +0000 (+0100) Subject: gl_cocoa: use triple buffering X-Git-Tag: upstream/1.20.0~1781 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27a62edd68fae2f00be0214993dad34309084947;p=platform%2Fupstream%2Fefl.git gl_cocoa: use triple buffering Interestingly enough, this makes some graphical artifacts vanish... --- diff --git a/src/modules/evas/engines/gl_cocoa/evas_outbuf.m b/src/modules/evas/engines/gl_cocoa/evas_outbuf.m index 4a8e176..80f5794 100644 --- a/src/modules/evas/engines/gl_cocoa/evas_outbuf.m +++ b/src/modules/evas/engines/gl_cocoa/evas_outbuf.m @@ -30,7 +30,7 @@ static int _win_count = 0; { const NSOpenGLPixelFormatAttribute attributes[] = { NSOpenGLPFAAccelerated, - NSOpenGLPFADoubleBuffer, + NSOpenGLPFATripleBuffer, 0 /* Terminator */ }; return [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease]; @@ -117,7 +117,7 @@ evas_outbuf_new(Evas_Engine_Info_GL_Cocoa *info, ob->info = info; ob->ns_window = info->window; ob->rot = 0; - ob->swap_mode = MODE_DOUBLE; + ob->swap_mode = MODE_TRIPLE; glview = [[EvasGLView alloc] initWithFrame: NSMakeRect(0, 0, w, h)]; if (EINA_UNLIKELY(!glview))