diff options
author | Christoph Bumiller <[email protected]> | 2012-05-22 15:21:01 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-05-22 15:22:10 +0200 |
commit | 89155ba71d9d3bb8f8b6ea095f75eaf38122e09c (patch) | |
tree | 38047d128921f0a26b092612f29b01ad4d601fcd | |
parent | a054fd8268876048a7ce45a2ebfc40a3dd1e8540 (diff) |
nv30: check for NULL vertex buffers in prevalidate_vbufs
-rw-r--r-- | src/gallium/drivers/nv30/nv30_vbo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_vbo.c b/src/gallium/drivers/nv30/nv30_vbo.c index 43914f74153..78d106880d0 100644 --- a/src/gallium/drivers/nv30/nv30_vbo.c +++ b/src/gallium/drivers/nv30/nv30_vbo.c @@ -99,7 +99,7 @@ nv30_prevalidate_vbufs(struct nv30_context *nv30) for (i = 0; i < nv30->num_vtxbufs; i++) { vb = &nv30->vtxbuf[i]; - if (!vb->stride) + if (!vb->stride || !vb->buffer) /* NOTE: user_buffer not implemented */ continue; buf = nv04_resource(vb->buffer); |