void GlfGLContext::MakeCurrent(const GlfGLContextSharedPtr& context) { if (context && context->IsValid()) { context->_MakeCurrent(); // Now that this context is current add it to the registry for // later lookup. GlfGLContextRegistry::GetInstance().DidMakeCurrent(context); } else { DoneCurrent(); } }
bool GlfGLContext::IsSharing(GlfGLContextSharedPtr const & otherContext) { return otherContext && IsValid() && otherContext->IsValid() && _IsSharing(otherContext); }
bool GlfGLContext::IsSharing(GlfGLContextSharedPtr const & otherContext) { return otherContext and IsValid() and otherContext->IsValid() and _IsSharing(otherContext); }