[Mesa-dev] [PATCH] swrast: remove unneeded _glapi_check_multithread() call
Emil Velikov
emil.l.velikov at gmail.com
Fri Jul 6 09:48:47 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
With commit c6c0f947142, back in 2006 Brian removed the
_glapi_check_multithread() call from core mesa - _mesa_make_current.
He moved it to a DRI loader (type of) decision - with equivalents in
the monolithic OSMesa and libGL-Xlib.
Some time afterwords, swrast (a DRI driver) was introduced as a copy
paste of the latter two. Remove the call since the DRI loader handles
that for us.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/mesa/drivers/dri/swrast/swrast.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
index ae5874f5927..1f90a853941 100644
--- a/src/mesa/drivers/dri/swrast/swrast.c
+++ b/src/mesa/drivers/dri/swrast/swrast.c
@@ -882,8 +882,6 @@ dri_make_current(__DRIcontext * cPriv,
return GL_TRUE;
}
- _glapi_check_multithread();
-
swrast_check_and_update_window_size(mesaCtx, mesaDraw);
if (mesaRead != mesaDraw)
swrast_check_and_update_window_size(mesaCtx, mesaRead);
--
2.18.0
More information about the mesa-dev
mailing list