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 1b93d0832f
commit 8fd6e01911

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];
}