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

Function XQueryExtension

server/faker-x11.cpp:641–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639// Tell the application that the GLX extension is present, even if it isn't.
640
641Bool 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

Callers 2

initMethod · 0.85
extensionQueryTestFunction · 0.85

Calls 1

queryExtensionFunction · 0.85

Tested by

no test coverage detected