| 30 | std::unordered_map<glbinding::ContextHandle, Registry *> Registry::s_registries; |
| 31 | |
| 32 | void 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 | |
| 42 | void Registry::registerContext(const glbinding::ContextHandle contextId, const glbinding::ContextHandle sharedContextId) |
| 43 | { |