| 97 | |
| 98 | |
| 99 | void init() |
| 100 | { |
| 101 | { |
| 102 | std::lock_guard<std::mutex> lock(g_mutex); |
| 103 | |
| 104 | if (!g_globjectsIsInitialized) |
| 105 | { |
| 106 | initializeCallbacks(); |
| 107 | |
| 108 | g_globjectsIsInitialized = true; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | registerCurrentContext(); |
| 113 | } |
| 114 | |
| 115 | void init(const glbinding::ContextHandle sharedContextId) |
| 116 | { |