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

Function glXDestroyContext

server/faker-glx.cpp:686–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684// When the context is destroyed, remove it from the context-to-FB config hash.
685
686void glXDestroyContext(Display *dpy, GLXContext ctx)
687{
688 TRY();
689
690 if(IS_EXCLUDED(dpy))
691 {
692 _glXDestroyContext(dpy, ctx); return;
693 }
694
695 /////////////////////////////////////////////////////////////////////////////
696 OPENTRACE(glXDestroyContext); PRARGD(dpy); PRARGX(ctx); STARTTRACE();
697 /////////////////////////////////////////////////////////////////////////////
698
699 CTXHASH.remove(ctx);
700 backend::destroyContext(dpy, ctx);
701
702 /////////////////////////////////////////////////////////////////////////////
703 STOPTRACE(); CLOSETRACE();
704 /////////////////////////////////////////////////////////////////////////////
705
706 CATCH();
707}
708
709
710// When the Pbuffer is destroyed, remove it from the GLX drawable-to-2D display

Callers 15

initMethod · 0.85
~GLFrameMethod · 0.85
readbackTestFunction · 0.85
readbackTestMSFunction · 0.85
flushTestFunction · 0.85
queryContextTestFunction · 0.85
getFBConfigFromVisualFunction · 0.85
multiThreadTestFunction · 0.85
offScreenTestFunction · 0.85
contextMismatchTestFunction · 0.85
copyContextTestFunction · 0.85
subWinTestFunction · 0.85

Calls 2

destroyContextFunction · 0.85
removeMethod · 0.45

Tested by 2

configureFunction · 0.68
mainFunction · 0.68