If we run out of bin memory and do an early return from
lp_setup_begin_query() we'd omit setting the setup->active_query
pointer. Then, when lp_setup_end_query() was later called, the
assertion for setup->active_query == pq would fail. Moving the
assigment in lp_setup_begin_query() avoids that.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/* init the query to its beginning state */
assert(setup->active_query == NULL);
+ setup->active_query = pq;
+
set_scene_state(setup, SETUP_ACTIVE, "begin_query");
if (setup->scene) {
}
}
}
-
- setup->active_query = pq;
}