summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-04-14 10:47:28 +1000
committerDave Airlie <airlied@redhat.com>2008-04-14 10:47:28 +1000
commitc61087c82784633e522bd9392172b43656bdf45e (patch)
treec7e7d3b751bf53902270dcdeca82f57f136291e5 /GL
parent1fa4de80fcfc697b5e5879cc351fb3e9dbf6acbe (diff)
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.
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 972ab88e6..16064a96d 100644
--- a/GL/glx/glxglcore.c
+++ b/GL/glx/glxglcore.c
@@ -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];