mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 06:48:31 +02:00
Dont add fbconfigs to array that we didn't allocate for.
This commit is contained in:
parent
157eeb5c3b
commit
a87e9a3479
1 changed files with 4 additions and 2 deletions
|
|
@ -1678,8 +1678,10 @@ PUBLIC GLXFBConfig *glXGetFBConfigs(Display *dpy, int screen, int *nelements)
|
|||
for ( modes = priv->screenConfigs[screen].configs
|
||||
; modes != NULL
|
||||
; modes = modes->next ) {
|
||||
config[i] = modes;
|
||||
i++;
|
||||
if ( modes->fbconfigID != GLX_DONT_CARE ) {
|
||||
config[i] = modes;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue