| 684 | // When the context is destroyed, remove it from the context-to-FB config hash. |
| 685 | |
| 686 | void 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 |