From: Adam Stylinski Date: Sat, 21 Jan 2023 17:51:28 +0000 (-0500) Subject: glx: fix a macro being invoked with the wrong parameter name X-Git-Tag: upstream/23.3.3~14210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ca5a81a6eab703c64bce66baef2e880339d6680;p=platform%2Fupstream%2Fmesa.git 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: --- 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