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().
This commit is contained in:
parent
6ff79ea5f7
commit
4113f040c5
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user