diff options
author | Eric Anholt <[email protected]> | 2012-07-04 11:58:40 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-07-12 12:29:12 -0700 |
commit | 6882381a2efbdf06b7002d11468c94b9964c2bc8 (patch) | |
tree | 05e78c7dc8cb8783d1a471ef207c9bf9a72591c1 /src/glx/create_context.c | |
parent | f92873be2c7fcb07154282bd0e418a4c88b6507e (diff) |
mesa: Require current libxcb.
Without that, people with buggy apps that looked at just the server
string for GLX_ARB_create_context would call this function that just
threw an error when you tried to make a context. Google shows plenty
of complaints about this.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/create_context.c')
-rw-r--r-- | src/glx/create_context.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/glx/create_context.c b/src/glx/create_context.c index a1a55b33538..a755e83f448 100644 --- a/src/glx/create_context.c +++ b/src/glx/create_context.c @@ -99,7 +99,6 @@ 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 HAVE_XCB_GLX_CREATE_CONTEXT cookie = xcb_glx_create_context_attribs_arb_checked(c, gc->xid, @@ -111,19 +110,6 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config, (const uint32_t *) attrib_list); err = xcb_request_check(c, cookie); -#else - /* This is a hugely ugly hack to make things compile on systems that lack - * the proper XCB version. - */ - memset(&cookie, 0, sizeof(cookie)); - - err = calloc(1, sizeof(*err)); - err->error_code = BadRequest; - err->sequence = dpy->request; - err->resource_id = gc->xid; - err->minor_code = gc->majorOpcode; - err->major_code = 34; -#endif if (err != NULL) { gc->vtable->destroy(gc); gc = NULL; |