llvmpipe: move active_query assignment in lp_setup_begin_query()
authorBrian Paul <brianp@vmware.com>
Thu, 28 Apr 2011 13:38:53 +0000 (07:38 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 28 Apr 2011 13:51:55 +0000 (07:51 -0600)
commit284191560b191ebb2219e0f5fe2de4128ad172a5
treec3f2c48ae53d992398b9bab004c24b765289ff4f
parentfa7a051c251552c4581caadce772a29c64f6a850
llvmpipe: move active_query assignment in lp_setup_begin_query()

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>
src/gallium/drivers/llvmpipe/lp_setup.c