GLXWindow glinject_my_glXCreateWindow(Display* dpy, GLXFBConfig config, Window win, const int* attrib_list) { GLXWindow res = g_glinject_real_glXCreateWindow(dpy, config, win, attrib_list); if(res == 0) return 0; g_glinject.NewGrabber(dpy, win, res); return res; }
GLXWindow glinject_my_glXCreateWindow(Display* dpy, GLXFBConfig config, Window win, const int* attrib_list) { GLXWindow res = g_glinject_real_glXCreateWindow(dpy, config, win, attrib_list); if(res == 0) return 0; std::lock_guard<std::mutex> lock(g_glinject_mutex); g_glinject->NewGLXFrameGrabber(dpy, win, res); return res; }