From: Brian Paul Date: Mon, 20 Sep 2010 16:50:15 +0000 (-0600) Subject: llvmpipe: fix query bug when no there's no scene X-Git-Tag: mesa-7.10~1096^2~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7888a2f82200738ac03c78d9900eb028d48725a1;p=platform%2Fupstream%2Fmesa.git llvmpipe: fix query bug when no there's no scene --- diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c index ff0e207..84c66dd 100644 --- a/src/gallium/drivers/llvmpipe/lp_query.c +++ b/src/gallium/drivers/llvmpipe/lp_query.c @@ -92,8 +92,9 @@ llvmpipe_get_query_result(struct pipe_context *pipe, int i; if (!pq->fence) { - assert(0); /* query not in issued state */ - return FALSE; + /* no fence because there was no scene, so results is zero */ + *result = 0; + return TRUE; } if (!lp_fence_signalled(pq->fence)) {