| 1926 | // Hand off to the 3D X server without modification. |
| 1927 | |
| 1928 | int 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 | |
| 1961 | int glXQueryContextInfoEXT(Display *dpy, GLXContext ctx, int attribute, |
no test coverage detected