summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-12-06 17:23:11 +0000
committerJosé Fonseca <[email protected]>2012-12-06 17:23:11 +0000
commitdb9a1052d1b2014419134c93aa4e05c9d1579378 (patch)
tree9c6109873cc4fe295edac8ec284abdbea31cff75 /src/gallium
parentb79194401a944e952e3035c676d1d22df24aa2a8 (diff)
llvmpipe: Fix statement before declaration.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 46af2481d59..26fa46de803 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -66,9 +66,10 @@ static void
lp_setup_get_empty_scene(struct lp_setup_context *setup)
{
struct llvmpipe_context *lp = llvmpipe_context(setup->pipe);
- assert(setup->scene == NULL);
boolean discard = lp->rasterizer ? lp->rasterizer->rasterizer_discard : FALSE;
+ assert(setup->scene == NULL);
+
setup->scene_idx++;
setup->scene_idx %= Elements(setup->scenes);