summaryrefslogtreecommitdiff
path: root/GL/mesa/X/xf86glx.c
diff options
context:
space:
mode:
Diffstat (limited to 'GL/mesa/X/xf86glx.c')
-rw-r--r--GL/mesa/X/xf86glx.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/GL/mesa/X/xf86glx.c b/GL/mesa/X/xf86glx.c
index 34b667088..0444acc80 100644
--- a/GL/mesa/X/xf86glx.c
+++ b/GL/mesa/X/xf86glx.c
@@ -196,6 +196,7 @@ __glXMesaContextDestroy(__GLXcontext *baseContext)
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext;
XMesaDestroyContext(context->xmesa);
+ __glXContextDestroy(context);
xfree(context);
}
@@ -237,6 +238,8 @@ __glXMesaContextForceCurrent(__GLXcontext *baseContext)
{
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext;
+ GlxSetRenderTables (context->xmesa->mesa.CurrentDispatch);
+
return XMesaForceCurrent(context->xmesa);
}
@@ -359,7 +362,7 @@ static void init_screen_visuals(__GLXMESAscreen *screen)
/* Create the XMesa visual */
pXMesaVisual[i] =
XMesaCreateVisual(pScreen,
- pVis,
+ &pVis[j],
modes->rgbMode,
(modes->alphaBits > 0),
modes->doubleBufferMode,
@@ -437,3 +440,9 @@ GlxGetMesaProvider (void)
{
return &__glXMesaProvider;
}
+
+__GLXprovider *
+GlxGetMesaProvider (void)
+{
+ return &__glXMesaProvider;
+}