summaryrefslogtreecommitdiffstats
path: root/src/glx/clientinfo.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-01-03 11:35:59 -0800
committerIan Romanick <[email protected]>2012-01-04 12:43:10 -0800
commit4becf676e0b09b421821b6895251549ec98d4e5d (patch)
tree894ffe597aa356454ea45376726f8b43854c99c3 /src/glx/clientinfo.c
parentc2e537fef26be6f9995f99e04015d0c1ac9ed5ae (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/clientinfo.c')
-rw-r--r--src/glx/clientinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glx/clientinfo.c b/src/glx/clientinfo.c
index 429e9a3bfa7..461030fce88 100644
--- a/src/glx/clientinfo.c
+++ b/src/glx/clientinfo.c
@@ -123,6 +123,7 @@ __glX_send_client_info(struct glx_display *glx_dpy)
* THE ORDER IS IMPORTANT. We want to send the most recent version of the
* protocol that the server can support.
*/
+#ifdef HAVE_XCB_GLX_CREATE_CONTEXT
if (glx_dpy->majorVersion == 1 && glx_dpy->minorVersion == 4
&& any_screen_has_ARB_create_context_profile) {
xcb_glx_set_client_info_2arb(c,
@@ -145,7 +146,9 @@ __glX_send_client_info(struct glx_display *glx_dpy)
gl_versions,
gl_extension_string,
glx_extensions);
- } else {
+ } else
+#endif
+ {
xcb_glx_client_info(c,
GLX_MAJOR_VERSION, GLX_MINOR_VERSION,
gl_extension_length,