From 71f610e26ea7d71043b1a8ceeb8af7d11d75d6ab Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 30 Jan 2011 18:07:10 +1000 Subject: [PATCH] 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. --- src/gallium/drivers/r600/r600_blit.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.30.2