llvmpipe: move active_query assignment
authorBrian Paul <brianp@vmware.com>
Thu, 28 Apr 2011 18:41:45 +0000 (12:41 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 28 Apr 2011 18:41:49 +0000 (12:41 -0600)
Fixes piglit regression.

src/gallium/drivers/llvmpipe/lp_setup.c

index 5700918856b7d93632e36f5124a44e8b76b606b0..cbe06e58a788a46b56388b5049a9cd7ad91448e8 100644 (file)
@@ -1063,10 +1063,10 @@ lp_setup_begin_query(struct lp_setup_context *setup,
    /* init the query to its beginning state */
    assert(setup->active_query == NULL);
 
-   setup->active_query = pq;
-
    set_scene_state(setup, SETUP_ACTIVE, "begin_query");
    
+   setup->active_query = pq;
+
    if (setup->scene) {
       if (!lp_scene_bin_everywhere(setup->scene,
                                    LP_RAST_OP_BEGIN_QUERY,