aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-13 15:01:35 -0700
committerBrian Paul <[email protected]>2010-01-13 15:10:57 -0700
commitdb58192cfb63cbb7b1d84e7ae7429799ce888164 (patch)
treea6b558e18b9c144210847d6f0a1dd570c4ad21a7
parentd59fe448967addb3025d7df90888ff950e03a343 (diff)
llvmpipe: re-get scene pointer after flushing
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 8193b107d9d..4f77d04ca53 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -249,6 +249,9 @@ lp_setup_bind_framebuffer( struct setup_context *setup,
set_scene_state( setup, SETUP_FLUSHED );
+ /* re-get scene pointer, may have a new scene after flushing */
+ scene = lp_setup_get_current_scene(setup);
+
util_copy_framebuffer_state(&setup->fb, fb);
lp_scene_set_framebuffer_size(scene, setup->fb.width, setup->fb.height);