From 55b68acd5492109f44ed07825343101f53ade82a Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 7 Sep 2010 15:02:48 +0100 Subject: [PATCH] Always update the dispatch table when a swrast context is made current, even if we don't actually need to change which swrast context is current. Dispatch table may have been updated by an indirect context since the last swrast context was made current. Signed-off-by: Jon TURNEY --- src/mesa/drivers/dri/swrast/swrast.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index f3903c2..6d5f568 100644 --- a/src/mesa/drivers/dri/swrast/swrast.c +++ b/src/mesa/drivers/dri/swrast/swrast.c @@ -687,6 +687,7 @@ dri_make_current(__DRIcontext * cPriv, if (mesaCtx == _mesa_get_current_context() && mesaCtx->DrawBuffer == mesaDraw && mesaCtx->ReadBuffer == mesaRead) { + _glapi_set_dispatch(mesaCtx->CurrentDispatch); return GL_TRUE; } -- 1.7.1