summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_setup_context.h
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-12-17 11:29:37 +0000
committerKeith Whitwell <keithw@vmware.com>2009-12-17 11:29:37 +0000
commit7f2ba80025e4b534db72427a206e6a542fc2f520 (patch)
tree18384be5093551559be2b0eca5299ac235f6aa28 /src/gallium/drivers/llvmpipe/lp_setup_context.h
parentab9438193083b7f9a3180cb9cea45e269131048a (diff)
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.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h
index 180d9eca84..f6604a8034 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;