nv30: check for NULL vertex buffers in prevalidate_vbufs
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 22 May 2012 13:21:01 +0000 (15:21 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 22 May 2012 13:22:10 +0000 (15:22 +0200)
src/gallium/drivers/nv30/nv30_vbo.c

index 43914f741532e2a2cda82b995c68405e902c892a..78d106880d094a3d63add7bd1ee211de519ad9ff 100644 (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);