nvc0: assert that we have vertex elements state
authorChristoph Bumiller <christoph.bumiller@speed.at>
Fri, 31 May 2013 19:06:11 +0000 (21:06 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 May 2014 16:34:39 +0000 (12:34 -0400)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c

index c58d6daddf13e270f876be5559af46582ec1be9f..83d406d564652e73bdb67360751df2baf7696c16 100644 (file)
@@ -423,6 +423,7 @@ nvc0_vertex_arrays_validate(struct nvc0_context *nvc0)
 
    nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_VTX);
 
+   assert(vertex);
    if (unlikely(vertex->need_conversion) ||
        unlikely(nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS)) {
       vbo_mode = 3;