From db58192cfb63cbb7b1d84e7ae7429799ce888164 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 13 Jan 2010 15:01:35 -0700 Subject: llvmpipe: re-get scene pointer after flushing --- src/gallium/drivers/llvmpipe/lp_setup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3