From c6c0f947142c0cc82626c238804a68b4e8f53945 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 16 Mar 2006 18:05:25 +0000 Subject: Moved _glapi_check_multithread() call into drivers, instead of in _mesa_make_current(). This removes an ugly #if !defined(IN_DRI_DRIVER) from core Mesa. --- src/mesa/main/context.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 94319ffcbe..fadfcc5214 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1597,14 +1597,7 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer, } } -#if !defined(IN_DRI_DRIVER) - /* We call this function periodically (just here for now) in - * order to detect when multithreading has begun. In a DRI driver, this - * step is done by the driver loader (e.g., libGL). - */ - _glapi_check_multithread(); -#endif /* !defined(IN_DRI_DRIVER) */ - + /* We used to call _glapi_check_multithread() here. Now do it in drivers */ _glapi_set_context((void *) newCtx); ASSERT(_mesa_get_current_context() == newCtx); -- cgit v1.2.3