From 9ca5a81a6eab703c64bce66baef2e880339d6680 Mon Sep 17 00:00:00 2001 From: Adam Stylinski Date: Sat, 21 Jan 2023 12:51:28 -0500 Subject: [PATCH] glx: fix a macro being invoked with the wrong parameter name Strangely, this was somehow compiling with GCC but my futile efforts to build mesa with msan caused me to find clang refusing to compile because of this. Unknown how many bugs this could fix or how GCC did manage to find "config" in scope but it's fairly obvious that this is the correct parameter that should be used. Reviewed-by: Adam Jackson Part-of: --- src/glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index df960e3..37c968b 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -1771,7 +1771,7 @@ _GLX_PUBLIC GLX_ALIAS(XVisualInfo *, glXGetVisualFromFBConfigSGIX, _GLX_PUBLIC GLX_ALIAS(GLXContext, glXCreateContextWithConfigSGIX, (Display *dpy, GLXFBConfigSGIX fbconfig, int renderType, GLXContext shareList, Bool direct), - (dpy, config, renderType, shareList, direct), + (dpy, fbconfig, renderType, shareList, direct), glXCreateNewContext) _GLX_PUBLIC GLXFBConfigSGIX -- 2.7.4