summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@openedhand.com>2007-11-05 17:33:01 +0100
committerDodji Seketeli <dodji@openedhand.com>2007-11-05 17:33:01 +0100
commit4113f040c587fc536adc693d7ee5a4c0a60b75d4 (patch)
tree1dd3acb2de6dd1bcd236aada368d16d8b23e0c1a /GL
parent6ff79ea5f7d3ff0c3b14e39849514784ccd40190 (diff)
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().
Diffstat (limited to 'GL')
-rw-r--r--GL/glx/glxglcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/GL/glx/glxglcore.c b/GL/glx/glxglcore.c
index 4cc00a360..0750e1282 100644
--- a/GL/glx/glxglcore.c
+++ b/GL/glx/glxglcore.c
@@ -265,7 +265,7 @@ __glXMesaScreenDestroy(__GLXscreen *screen)
int i;
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])
XMesaDestroyVisual(mesaScreen->xm_vis[i]);
}