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

Function xcb_glx_query_version

server/faker-xcb.cpp:348–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346
347
348xcb_glx_query_version_cookie_t
349 xcb_glx_query_version(xcb_connection_t *conn, uint32_t major_version,
350 uint32_t minor_version)
351{
352 xcb_glx_query_version_cookie_t cookie = { 0 };
353
354 TRY();
355
356 // Note that we have to hand off to the underlying XCB libraries if
357 // faker::deadYet==true, because MainWin calls X11 functions (which in turn
358 // call XCB functions) from one of its shared library destructors, which is
359 // executed after the VirtualGL Faker has shut down.
360 if(!fconfig.fakeXCB || IS_EXCLUDED(XCBCONNHASH.getX11Display(conn)))
361 return _xcb_glx_query_version(conn, major_version, minor_version);
362
363 /////////////////////////////////////////////////////////////////////////////
364 OPENTRACE(xcb_glx_query_version); PRARGX(conn); PRARGI(major_version);
365 PRARGI(minor_version); STARTTRACE();
366 /////////////////////////////////////////////////////////////////////////////
367
368 xcb_connection_t *conn3D = (fconfig.egl ? conn : _XGetXCBConnection(DPY3D));
369 if(conn3D != NULL)
370 cookie = _xcb_glx_query_version(conn3D, major_version, minor_version);
371
372 /////////////////////////////////////////////////////////////////////////////
373 STOPTRACE(); CLOSETRACE();
374 /////////////////////////////////////////////////////////////////////////////
375
376 CATCH();
377
378 return cookie;
379}
380
381
382xcb_glx_query_version_reply_t *

Callers 1

extensionQueryTestFunction · 0.85

Calls 1

getX11DisplayMethod · 0.45

Tested by

no test coverage detected