From 68a4f6324712d7eae327ee438a41c432ec72f11d Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 30 Nov 2010 12:00:25 +0000 Subject: [PATCH] llvmpipe: shortcircuit some calls to set_scene_state --- src/gallium/drivers/llvmpipe/lp_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 07acdb28215..a173e71aba7 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -927,7 +927,7 @@ lp_setup_update_state( struct lp_setup_context *setup, setup->setup.variant->key.size) == 0); } - if (update_scene) { + if (update_scene && setup->state != SETUP_ACTIVE) { if (!set_scene_state( setup, SETUP_ACTIVE, __FUNCTION__ )) return FALSE; } -- 2.30.2