From: Christoph Bumiller Date: Tue, 22 May 2012 13:21:01 +0000 (+0200) Subject: nv30: check for NULL vertex buffers in prevalidate_vbufs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89155ba71d9d3bb8f8b6ea095f75eaf38122e09c;p=mesa.git nv30: check for NULL vertex buffers in prevalidate_vbufs --- 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);