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

Function glXQueryContext

server/faker-glx.cpp:1928–1958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1926// Hand off to the 3D X server without modification.
1927
1928int glXQueryContext(Display *dpy, GLXContext ctx, int attribute, int *value)
1929{
1930 int retval = 0;
1931
1932 TRY();
1933
1934 if(IS_EXCLUDED(dpy))
1935 return _glXQueryContext(dpy, ctx, attribute, value);
1936
1937 /////////////////////////////////////////////////////////////////////////////
1938 OPENTRACE(glXQueryContext); PRARGD(dpy); PRARGX(ctx); PRARGIX(attribute);
1939 STARTTRACE();
1940 /////////////////////////////////////////////////////////////////////////////
1941
1942 VGLFBConfig config;
1943
1944 if(ctx && attribute == GLX_SCREEN && value
1945 && (config = CTXHASH.findConfig(ctx)) != NULL)
1946 {
1947 *value = config->screen;
1948 retval = Success;
1949 }
1950 else retval = backend::queryContext(dpy, ctx, attribute, value);
1951
1952 /////////////////////////////////////////////////////////////////////////////
1953 STOPTRACE(); if(value) PRARGIX(*value); CLOSETRACE();
1954 /////////////////////////////////////////////////////////////////////////////
1955
1956 CATCH();
1957 return retval;
1958}
1959
1960
1961int glXQueryContextInfoEXT(Display *dpy, GLXContext ctx, int attribute,

Callers 2

queryContextTestFunction · 0.85
getFBConfigFromVisualFunction · 0.85

Calls 2

queryContextFunction · 0.85
findConfigMethod · 0.45

Tested by

no test coverage detected