mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-10 16:10:26 +01:00
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:
parent
ffab4c8cb7
commit
bde5928264
1 changed files with 6 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue