summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_rast.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-10 18:10:16 -0700
committerBrian Paul <[email protected]>2010-02-23 18:57:18 -0700
commit049b4c340575ebc788d9a009829980fafa587eff (patch)
treed4714116b743e3580ec824369e4f8c7f062c6058 /src/gallium/drivers/llvmpipe/lp_rast.c
parentc8aaa24f2da4e4da3d726e0a58459c7d9cb64b93 (diff)
llvmpipe: added assertions to verify that scene is empty
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 6dbcb3c9b31..bbd63aec2b3 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -603,6 +603,9 @@ release_scene( struct lp_rasterizer *rast,
util_unreference_framebuffer_state( &scene->fb );
lp_scene_reset( scene );
+
+ assert(lp_scene_is_empty(scene));
+
lp_scene_enqueue( rast->empty_scenes, scene );
rast->curr_scene = NULL;
}