| 639 | // Tell the application that the GLX extension is present, even if it isn't. |
| 640 | |
| 641 | Bool XQueryExtension(Display *dpy, _Xconst char *name, int *major_opcode, |
| 642 | int *first_event, int *first_error) |
| 643 | { |
| 644 | Bool retval = True; |
| 645 | |
| 646 | TRY(); |
| 647 | |
| 648 | if(IS_EXCLUDED(dpy)) |
| 649 | return _XQueryExtension(dpy, name, major_opcode, first_event, first_error); |
| 650 | |
| 651 | ///////////////////////////////////////////////////////////////////////////// |
| 652 | OPENTRACE(XQueryExtension); PRARGD(dpy); PRARGS(name); STARTTRACE(); |
| 653 | ///////////////////////////////////////////////////////////////////////////// |
| 654 | |
| 655 | if(!strcmp(name, "GLX")) |
| 656 | retval = backend::queryExtension(dpy, major_opcode, first_event, |
| 657 | first_error); |
| 658 | else |
| 659 | retval = _XQueryExtension(dpy, name, major_opcode, first_event, |
| 660 | first_error); |
| 661 | |
| 662 | ///////////////////////////////////////////////////////////////////////////// |
| 663 | STOPTRACE(); if(major_opcode) PRARGI(*major_opcode); |
| 664 | if(first_event) PRARGI(*first_event); |
| 665 | if(first_error) PRARGI(*first_error); |
| 666 | CLOSETRACE(); |
| 667 | ///////////////////////////////////////////////////////////////////////////// |
| 668 | |
| 669 | CATCH(); |
| 670 | |
| 671 | return retval; |
| 672 | } |
| 673 | |
| 674 | |
| 675 | // This was implemented because of Pro/E Wildfire v2 on SPARC. Unless the X |
no test coverage detected