Browse Source

llvmpipe: fix query bug when no there's no scene

tags/snb-magic
Brian Paul 15 years ago
parent
commit
7888a2f822
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/gallium/drivers/llvmpipe/lp_query.c

+ 3
- 2
src/gallium/drivers/llvmpipe/lp_query.c View File

@@ -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)) {

Loading…
Cancel
Save