mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 20:00:19 +01:00
glcore: zero fbconfigs before filling them in.
I'm not sure this the complete proper solution, perhaps it should explicitly fill
in ever field.
This at least makes glxinfo on glcore return sensible information, it doesn't make
gears work yet though.
(cherry picked from commit c61087c827)
This commit is contained in:
parent
db00d4a4dc
commit
d6916b149d
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ createFBConfigsForVisual(__GLXscreen *screen, ScreenPtr pScreen,
|
|||
for (back = numBack - 1; back >= 0; back--)
|
||||
for (depth = 0; depth < numDepth; depth++)
|
||||
for (stencil = 0; stencil < numStencil; stencil++) {
|
||||
config->next = xalloc(sizeof *config);
|
||||
config->next = xcalloc(sizeof(*config), 1);
|
||||
config = config->next;
|
||||
|
||||
config->visualType = glx_visual_types[visual->class];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue