diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 927d065dfe7..e1aa475776a 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -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.