summaryrefslogtreecommitdiff
path: root/glamor/glamor_vbo.c
diff options
context:
space:
mode:
Diffstat (limited to 'glamor/glamor_vbo.c')
-rw-r--r--glamor/glamor_vbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_vbo.c b/glamor/glamor_vbo.c
index c6785594b..e90610102 100644
--- a/glamor/glamor_vbo.c
+++ b/glamor/glamor_vbo.c
@@ -119,7 +119,7 @@ glamor_get_vbo_space(ScreenPtr screen, unsigned size, char **vbo_offset)
if (glamor_priv->vbo_size < size) {
glamor_priv->vbo_size = MAX(GLAMOR_VBO_SIZE, size);
free(glamor_priv->vb);
- glamor_priv->vb = XNFalloc(size);
+ glamor_priv->vb = XNFalloc(glamor_priv->vbo_size);
}
*vbo_offset = NULL;
/* We point to the start of glamor_priv->vb every time, and