r600g: fixes a segfault in the piglit fbo-genmipmap-formats test.
authorDave Airlie <airlied@redhat.com>
Sun, 30 Jan 2011 08:07:10 +0000 (18:07 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 30 Jan 2011 08:09:25 +0000 (18:09 +1000)
should be no need to unset this ptr here and if we don't end up using the
blitter we've just broken the state.

src/gallium/drivers/r600/r600_blit.c

index b487182e3aab5aaa72177592dbefeaf0abf7270f..71a504cb9a23a1748d9aa5b6cf16aab12ce0d8cb 100644 (file)
@@ -55,8 +55,6 @@ static void r600_blitter_begin(struct pipe_context *ctx, enum r600_blitter_op op
        }
        util_blitter_save_vertex_buffers(rctx->blitter, rctx->nvertex_buffers, rctx->vertex_buffer);
 
-       rctx->vertex_elements = NULL;
-
        if (op & (R600_CLEAR_SURFACE | R600_COPY))
                util_blitter_save_framebuffer(rctx->blitter, &rctx->framebuffer);