summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2017-03-09 00:31:51 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2017-03-09 00:57:56 +0100
commit27a62edd68fae2f00be0214993dad34309084947 (patch)
tree42526c6d358e630ed1366453b61fec585387a294
parentf6a44e6bc165016af37c77fdabc24cbff4264d05 (diff)
gl_cocoa: use triple buffering
Interestingly enough, this makes some graphical artifacts vanish...
-rw-r--r--src/modules/evas/engines/gl_cocoa/evas_outbuf.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_cocoa/evas_outbuf.m b/src/modules/evas/engines/gl_cocoa/evas_outbuf.m
index 4a8e176510..80f579452c 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;
30{ 30{
31 const NSOpenGLPixelFormatAttribute attributes[] = { 31 const NSOpenGLPixelFormatAttribute attributes[] = {
32 NSOpenGLPFAAccelerated, 32 NSOpenGLPFAAccelerated,
33 NSOpenGLPFADoubleBuffer, 33 NSOpenGLPFATripleBuffer,
34 0 /* Terminator */ 34 0 /* Terminator */
35 }; 35 };
36 return [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease]; 36 return [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease];
@@ -117,7 +117,7 @@ evas_outbuf_new(Evas_Engine_Info_GL_Cocoa *info,
117 ob->info = info; 117 ob->info = info;
118 ob->ns_window = info->window; 118 ob->ns_window = info->window;
119 ob->rot = 0; 119 ob->rot = 0;
120 ob->swap_mode = MODE_DOUBLE; 120 ob->swap_mode = MODE_TRIPLE;
121 121
122 glview = [[EvasGLView alloc] initWithFrame: NSMakeRect(0, 0, w, h)]; 122 glview = [[EvasGLView alloc] initWithFrame: NSMakeRect(0, 0, w, h)];
123 if (EINA_UNLIKELY(!glview)) 123 if (EINA_UNLIKELY(!glview))