Bug 638323 - Skip unnecessary MakeCurrent calls in GLContextProviderCGL. r=bjacob

This commit is contained in:
Matt Woodrow 2011-04-19 10:49:00 +12:00
parent 688e762c8c
commit af306501e0

View File

@ -166,6 +166,10 @@ public:
PRBool MakeCurrentImpl(PRBool aForce = PR_FALSE)
{
if (!aForce && [NSOpenGLContext currentContext] == mContext) {
return PR_TRUE;
}
if (mContext) {
[mContext makeCurrentContext];
}