Commit 4113f040 authored by Dodji Seketeli's avatar Dodji Seketeli
Browse files

GL: fix crash at mesa destruction time

        * GL/glx/glxglcore.c:
         (_glXMesaScreenDestroy): delete the same amount of visuals
         that those which were created in createMesaVisuals().
parent 6ff79ea5
...@@ -265,7 +265,7 @@ __glXMesaScreenDestroy(__GLXscreen *screen) ...@@ -265,7 +265,7 @@ __glXMesaScreenDestroy(__GLXscreen *screen)
int i; int i;
if (mesaScreen->xm_vis) { if (mesaScreen->xm_vis) {
for (i = 0; i < mesaScreen->num_vis; i++) { for (i = 0; i < mesaScreen->base.numFBConfigs; i++) {
if (mesaScreen->xm_vis[i]) if (mesaScreen->xm_vis[i])
XMesaDestroyVisual(mesaScreen->xm_vis[i]); XMesaDestroyVisual(mesaScreen->xm_vis[i]);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment