summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-11-30 12:00:25 +0000
committerKeith Whitwell <[email protected]>2010-11-30 12:01:29 +0000
commit68a4f6324712d7eae327ee438a41c432ec72f11d (patch)
tree03eb8df774a813809e9dd0ca4d9725a70c620104 /src/gallium/drivers/llvmpipe/lp_setup.c
parentd9169364d4ec05f766b0835785c6fd76294d9967 (diff)
llvmpipe: shortcircuit some calls to set_scene_state
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c2
1 files changed, 1 insertions, 1 deletions
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;
}