glx: Trim trailing spaces in in glx/glxext.c

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18749>
This commit is contained in:
Yonggang Luo 2022-09-22 17:22:40 +08:00 committed by Marge Bot
parent ffab4c8cb7
commit bde5928264

View file

@ -125,7 +125,7 @@ static /* const */ char *error_list[] = {
};
#ifdef GLX_USE_APPLEGL
static char *__glXErrorString(Display *dpy, int code, XExtCodes *codes,
static char *__glXErrorString(Display *dpy, int code, XExtCodes *codes,
char *buf, int n);
#endif
@ -376,8 +376,8 @@ QueryVersion(Display * dpy, int opcode, int *major, int *minor)
return GL_TRUE;
}
/*
* We don't want to enable this GLX_OML_swap_method in glxext.h,
/*
* We don't want to enable this GLX_OML_swap_method in glxext.h,
* because we can't support it. The X server writes it out though,
* so we should handle it somehow, to avoid false warnings.
*/
@ -462,7 +462,7 @@ __glXInitializeVisualConfigFromTags(struct glx_config * config, int count,
for (i = 0; i < count; i += 2) {
long int tag = *bp++;
switch (tag) {
case GLX_RGBA:
if (fbconfig_style_tags)
@ -546,7 +546,7 @@ __glXInitializeVisualConfigFromTags(struct glx_config * config, int count,
config->drawableType = *bp++;
#ifdef GLX_USE_APPLEGL
/* AppleSGLX supports pixmap and pbuffers with all config. */
config->drawableType |= GLX_WINDOW_BIT | GLX_PIXMAP_BIT | GLX_PBUFFER_BIT;
config->drawableType |= GLX_WINDOW_BIT | GLX_PIXMAP_BIT | GLX_PBUFFER_BIT;
#endif
break;
case GLX_RENDER_TYPE: /* fbconfig render type bits */
@ -678,7 +678,7 @@ createConfigsFromProperties(Display * dpy, int nvisuals, int nprops,
/* Older X servers don't send this so we default it here. */
m->drawableType = GLX_WINDOW_BIT;
#else
/*
/*
* The XQuartz 2.3.2.1 X server doesn't set this properly, so
* set the proper bits here.
* AppleSGLX supports windows, pixmaps, and pbuffers with all config.