mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 638323 - Skip unnecessary MakeCurrent calls in GLContextProviderCGL. r=bjacob
This commit is contained in:
parent
1b93d0832f
commit
8fd6e01911
@ -166,6 +166,10 @@ public:
|
||||
|
||||
PRBool MakeCurrentImpl(PRBool aForce = PR_FALSE)
|
||||
{
|
||||
if (!aForce && [NSOpenGLContext currentContext] == mContext) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
if (mContext) {
|
||||
[mContext makeCurrentContext];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user