MCPcopy Create free account
hub / github.com/cginternals/globjects / registerContext

Method registerContext

source/globjects/source/registry/Registry.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30std::unordered_map<glbinding::ContextHandle, Registry *> Registry::s_registries;
31
32void Registry::registerContext(glbinding::ContextHandle contextId)
33{
34 if (isContextRegistered(contextId))
35 {
36 globjects::debug() << "OpenGL context " << contextId << " is already registered";
37 }
38
39 setCurrentRegistry(contextId);
40}
41
42void Registry::registerContext(const glbinding::ContextHandle contextId, const glbinding::ContextHandle sharedContextId)
43{

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected