+ unsigned long long hglrc1 = call.arg(0).toUIntPtr();
+ unsigned long long hglrc2 = call.arg(1).toUIntPtr();
+
+ glws::Context *share_context = context_map[hglrc1];
+ glws::Context *old_context = context_map[hglrc2];
+
+ glws::Context *new_context =
+ ws->createContext(old_context->visual, share_context);
+ if (new_context) {
+ delete old_context;
+ context_map[hglrc2] = new_context;
+ }