Mesa (master): nv30: check for NULL vertex buffers in prevalidate_vbufs

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Tue May 22 13:23:05 UTC 2012


Module: Mesa
Branch: master
Commit: 89155ba71d9d3bb8f8b6ea095f75eaf38122e09c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89155ba71d9d3bb8f8b6ea095f75eaf38122e09c

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Tue May 22 15:21:01 2012 +0200

nv30: check for NULL vertex buffers in prevalidate_vbufs

---

 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 43914f7..78d1068 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);
 




More information about the mesa-commit mailing list