예제 #1
0
파일: glContext.cpp 프로젝트: JT-a/USD
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();
    }
}
예제 #2
0
파일: glContext.cpp 프로젝트: JT-a/USD
bool
GlfGLContext::IsSharing(GlfGLContextSharedPtr const & otherContext)
{
    return otherContext && IsValid() &&
           otherContext->IsValid() && _IsSharing(otherContext);
}
예제 #3
0
파일: glContext.cpp 프로젝트: 400dama/USD
bool
GlfGLContext::IsSharing(GlfGLContextSharedPtr const & otherContext)
{
    return otherContext and IsValid() and
           otherContext->IsValid() and _IsSharing(otherContext);
}