From: Dave Airlie Date: Sun, 30 Jan 2011 08:07:10 +0000 (+1000) Subject: r600g: fixes a segfault in the piglit fbo-genmipmap-formats test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71f610e26ea7d71043b1a8ceeb8af7d11d75d6ab;p=mesa.git r600g: fixes a segfault in the piglit fbo-genmipmap-formats test. 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. --- diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index b487182e3aa..71a504cb9a2 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -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);