diff options
author | Ian Romanick <[email protected]> | 2012-01-03 11:35:59 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-01-04 12:43:10 -0800 |
commit | 4becf676e0b09b421821b6895251549ec98d4e5d (patch) | |
tree | 894ffe597aa356454ea45376726f8b43854c99c3 /src/glx/create_context.c | |
parent | c2e537fef26be6f9995f99e04015d0c1ac9ed5ae (diff) |
glx: More hacking around versions of XCB that lack GLX_ARB_create_context support
Detect whether a new enough version of XCB is installed at configure
time. If it is not, don't enable the extension and don't build the
unit tests.
v2: Move the AM_CONDIATION outside the case-statement so that it is
invoked even for non-GLX builds. This prevents build failures with
osmesa, for example.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Tested-by: Robert Hooker <[email protected]>
Diffstat (limited to 'src/glx/create_context.c')
-rw-r--r-- | src/glx/create_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/create_context.c b/src/glx/create_context.c index 11f9340a2e8..714f0e59271 100644 --- a/src/glx/create_context.c +++ b/src/glx/create_context.c @@ -94,7 +94,7 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config, * the protocol error and handle it. Part of handling the error is freeing * the possibly non-NULL value returned by this function. */ -#ifdef XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB +#ifdef HAVE_XCB_GLX_CREATE_CONTEXT cookie = xcb_glx_create_context_attribs_arb_checked(c, gc->xid, |