diff options
author | Keith Whitwell <[email protected]> | 2009-12-17 11:29:37 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-12-17 11:29:37 +0000 |
commit | 7f2ba80025e4b534db72427a206e6a542fc2f520 (patch) | |
tree | 18384be5093551559be2b0eca5299ac235f6aa28 /src/gallium/drivers/llvmpipe/lp_setup_context.h | |
parent | ab9438193083b7f9a3180cb9cea45e269131048a (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.h | 2 |
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 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; |