Beispiel #1
0
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();
    }
}
Beispiel #2
0
bool
GlfGLContext::IsSharing(GlfGLContextSharedPtr const & otherContext)
{
    return otherContext && IsValid() &&
           otherContext->IsValid() && _IsSharing(otherContext);
}
Beispiel #3
0
bool
GlfGLContext::IsSharing(GlfGLContextSharedPtr const & otherContext)
{
    return otherContext and IsValid() and
           otherContext->IsValid() and _IsSharing(otherContext);
}