MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / glXCopyContext

Function glXCopyContext

server/faker-glx.cpp:275–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273// Hand off to the 3D X server without modification.
274
275void glXCopyContext(Display *dpy, GLXContext src, GLXContext dst,
276 unsigned long mask)
277{
278 TRY();
279
280 if(IS_EXCLUDED(dpy))
281 return _glXCopyContext(dpy, src, dst, mask);
282
283 if(fconfig.egl)
284 {
285 vglout.println("[VGL] ERROR: glXCopyContext() requires the GLX back end");
286 faker::sendGLXError(dpy, X_GLXCopyContext, BadRequest, true);
287 return;
288 }
289 _glXCopyContext(DPY3D, src, dst, mask);
290
291 CATCH();
292}
293
294
295// Create a GLX context on the 3D X server suitable for off-screen rendering.

Callers

nothing calls this directly

Calls 2

sendGLXErrorFunction · 0.85
printlnMethod · 0.80

Tested by

no test coverage detected