diff options
author | Eric Anholt <[email protected]> | 2014-01-23 11:03:53 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-01-27 09:37:29 -0800 |
commit | 4a8da40fc089d465b72ecee89e24cd92e6714669 (patch) | |
tree | 983c52083b7803ff60ccb70b7377c0e5c154fac1 /src/glx/dri3_glx.c | |
parent | 7bd95ec437a5b1052fa17780a9d66677ec1fdc35 (diff) |
dri: Fix the logger error message handling.
Since the loader changes, there has been a compiler warning that the
prototype didn't match. It turns out that if a loader error message was
ever thrown, you'd segfault because of trying to use the warning level as
a format string.
Reviewed-by: Keith Packard <[email protected]>
Tested-by: Keith Packard <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/glx/dri3_glx.c')
-rw-r--r-- | src/glx/dri3_glx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 3e829651c05..2a9f0b7353c 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -1803,7 +1803,7 @@ dri3_create_display(Display * dpy) pdp->base.destroyDisplay = dri3_destroy_display; pdp->base.createScreen = dri3_create_screen; - loader_set_logger(ErrorMessageF); + loader_set_logger(dri_message); i = 0; pdp->loader_extensions[i++] = &imageLoaderExtension.base; |