MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getThreadLocalOpenGLContext

Method getThreadLocalOpenGLContext

Engine/EffectInstance.cpp:703–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703OSGLContextPtr
704EffectInstance::getThreadLocalOpenGLContext() const
705{
706 EffectTLSDataPtr tls = _imp->tlsData->getTLSData();
707
708 if ( !tls || tls->frameArgs.empty() ) {
709 return OSGLContextPtr();
710 }
711
712 return tls->frameArgs.back()->openGLContext.lock();
713}
714
715ImagePtr
716EffectInstance::getImage(int inputNb,

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
getTLSDataMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected