mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/mesa: replace conditional with assertion
Core Mesa will not call ctx->Driver.CheckQuery() if the Ready flag is already set.
This commit is contained in:
parent
f4542477cf
commit
6b4a553dd3
1 changed files with 2 additions and 7 deletions
|
|
@ -130,13 +130,8 @@ st_CheckQuery(GLcontext *ctx, struct gl_query_object *q)
|
|||
{
|
||||
struct pipe_context *pipe = ctx->st->pipe;
|
||||
struct st_query_object *stq = st_query_object(q);
|
||||
|
||||
if (!q->Ready) {
|
||||
q->Ready = pipe->get_query_result(pipe,
|
||||
stq->pq,
|
||||
FALSE,
|
||||
&q->Result);
|
||||
}
|
||||
assert(!q->Ready); /* we should not get called if Ready is TRUE */
|
||||
q->Ready = pipe->get_query_result(pipe, stq->pq, FALSE, &q->Result);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue