summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorAdam Stylinski <kungfujesus06@gmail.com>2023-01-21 12:51:28 -0500
committerMarge Bot <emma+marge@anholt.net>2023-01-22 04:22:08 +0000
commit9ca5a81a6eab703c64bce66baef2e880339d6680 (patch)
tree0d5e46468672df7bb8e757369fe971709e39a8eb /src/glx
parentd59683ab8986f977cc91d09fc251f6ed971f0e41 (diff)
downloadmesa-9ca5a81a6eab703c64bce66baef2e880339d6680.tar.gz
mesa-9ca5a81a6eab703c64bce66baef2e880339d6680.tar.bz2
mesa-9ca5a81a6eab703c64bce66baef2e880339d6680.zip
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 <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20830>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index df960e32d8a..37c968b7e7e 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