From 7f2ba80025e4b534db72427a206e6a542fc2f520 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 17 Dec 2009 11:29:37 +0000 Subject: llvmpipe: keep copy of framebuffer state in setup context Avoids crashes when first frame is rendered before window is mapped. Avoids potential issue where fb state is changed before setup context is flushed. --- src/gallium/drivers/llvmpipe/lp_setup_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h') diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index 180d9eca84b..f6604a8034a 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -65,7 +65,7 @@ struct setup_context { boolean ccw_is_frontface; unsigned cullmode; - const struct pipe_framebuffer_state *fb; + struct pipe_framebuffer_state fb; struct { unsigned flags; -- cgit v1.2.3