mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 748816. Set the swap interval to 1 on OS X. r=bgirard
This fixes the tearing we get on OS X with OpenGL layers. It does cause us to occasionally block waiting for vsync. This isn't ideal but I think it's better than tearing. OMTC should help us remove this wait. --HG-- extra : rebase_source : 97739bb0a1a5094ff92e26f5513558ae389ae560
This commit is contained in:
parent
a89a241589
commit
16e3270867
@ -148,6 +148,8 @@ public:
|
||||
|
||||
if (mContext) {
|
||||
[mContext makeCurrentContext];
|
||||
GLint swapInt = 1;
|
||||
[mContext setValues:&swapInt forParameter:NSOpenGLCPSwapInterval];
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user