diff options
author | Adam Jackson <[email protected]> | 2017-11-14 15:13:02 -0500 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2017-12-01 15:46:46 -0500 |
commit | 75d5d22fb790d856809a9dd896ffc22a268d1d96 (patch) | |
tree | f877671b7df53ec2ef745905ae3ea67724d14674 /src/glx/glxcmds.c | |
parent | bcb15bee52aff0faae37d4b933f462735ccb918b (diff) |
glx: Use __glXSendError instead of open-coding it
This also fixes a bug, the error path through MakeCurrent didn't
translate the error code by the extension's error base.
Signed-off-by: Adam Jackson <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/glxcmds.c')
-rw-r--r-- | src/glx/glxcmds.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index bc93d625106..eee45d962d7 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -392,15 +392,7 @@ glXCreateContext(Display * dpy, XVisualInfo * vis, config = glx_config_find_visual(psc->visuals, vis->visualid); if (config == NULL) { - xError error; - - error.errorCode = BadValue; - error.resourceID = vis->visualid; - error.sequenceNumber = dpy->request; - error.type = X_Error; - error.majorCode = __glXSetupForCommand(dpy); - error.minorCode = X_GLXCreateContext; - _XError(dpy, &error); + __glXSendError(dpy, BadValue, vis->visualid, X_GLXCreateContext, True); return None; } |