diff options
Diffstat (limited to 'src/mesa/drivers/x11/fakeglx.c')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 3784044bf9..7569fb05c1 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -344,7 +344,7 @@ save_glx_visual( Display *dpy, XVisualInfo *vinfo, /* Allocate more space for additional visual */ VisualTable = _mesa_realloc( VisualTable, sizeof(XMesaVisual) * NumVisuals, - sizeof(XMesaVisual) * NumVisuals + 1); + sizeof(XMesaVisual) * (NumVisuals + 1)); /* add xmvis to the list */ VisualTable[NumVisuals] = xmvis; NumVisuals++; |