From 89155ba71d9d3bb8f8b6ea095f75eaf38122e09c Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 22 May 2012 15:21:01 +0200 Subject: nv30: check for NULL vertex buffers in prevalidate_vbufs --- src/gallium/drivers/nv30/nv30_vbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers') 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); -- cgit v1.2.3