mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Bug 638323 - Skip unnecessary MakeCurrent calls in GLContextProviderCGL. r=bjacob
This commit is contained in:
parent
688e762c8c
commit
af306501e0
@ -166,6 +166,10 @@ public:
|
||||
|
||||
PRBool MakeCurrentImpl(PRBool aForce = PR_FALSE)
|
||||
{
|
||||
if (!aForce && [NSOpenGLContext currentContext] == mContext) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
if (mContext) {
|
||||
[mContext makeCurrentContext];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user