summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_state_surface.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-12-17 11:29:37 +0000
committerKeith Whitwell <[email protected]>2009-12-17 11:29:37 +0000
commit7f2ba80025e4b534db72427a206e6a542fc2f520 (patch)
tree18384be5093551559be2b0eca5299ac235f6aa28 /src/gallium/drivers/llvmpipe/lp_state_surface.c
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_state_surface.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_surface.c b/src/gallium/drivers/llvmpipe/lp_state_surface.c
index 21565436eb6..957e947fe02 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_surface.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_surface.c
@@ -68,7 +68,7 @@ llvmpipe_set_framebuffer_state(struct pipe_context *pipe,
draw_set_mrd(lp->draw, mrd);
}
- lp_setup_bind_framebuffer( lp->setup, fb );
+ lp_setup_bind_framebuffer( lp->setup, &lp->framebuffer );
lp->dirty |= LP_NEW_FRAMEBUFFER;
}