summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_vbo.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-03-13 18:18:17 +0100
committerChristoph Bumiller <[email protected]>2011-03-13 18:19:22 +0100
commitc448a556e9f97dd059de99048b75ebf6d51e1d7c (patch)
treeac9642e2bbe6a47871b377dc3a3f2acb6ef5bb68 /src/gallium/drivers/nv50/nv50_vbo.c
parent07838ff990a74e3acd95de7042042b49ecc51570 (diff)
nv50,nvc0: don't assert on cso with 0 vertex elements
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_vbo.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_vbo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index 4f0a5018459..abdb9ce2f93 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -51,10 +51,8 @@ nv50_vertex_state_create(struct pipe_context *pipe,
struct translate_key transkey;
unsigned i;
- assert(num_elements);
-
so = MALLOC(sizeof(*so) +
- (num_elements - 1) * sizeof(struct nv50_vertex_element));
+ num_elements * sizeof(struct nv50_vertex_element));
if (!so)
return NULL;
so->num_elements = num_elements;