Browse Source

nv30: check for NULL vertex buffers in prevalidate_vbufs

tags/instanced_arrays-v2
Christoph Bumiller 13 years ago
parent
commit
89155ba71d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/nv30/nv30_vbo.c

+ 1
- 1
src/gallium/drivers/nv30/nv30_vbo.c View File

@@ -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);


Loading…
Cancel
Save