projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1685549
)
llvmpipe: fix query bug when no there's no scene
author
Brian Paul
<brianp@vmware.com>
Mon, 20 Sep 2010 16:50:15 +0000
(10:50 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 20 Sep 2010 16:50:35 +0000
(10:50 -0600)
src/gallium/drivers/llvmpipe/lp_query.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_query.c
b/src/gallium/drivers/llvmpipe/lp_query.c
index ff0e207a54babd9c3a490aac0359a04aa1a960d3..84c66dd36e8ea3551b6cace0dbe3b5bfb1001c95 100644
(file)
--- 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)) {