diff options
author | Marek Olšák <[email protected]> | 2011-10-28 17:44:02 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-10-28 19:29:04 +0200 |
commit | 671af44b1962a7a138185a4cfb992f6b349de10a (patch) | |
tree | 72fe62c20d1200bd9389441532b5b800e816dddb /src/gallium/drivers/r300/r300_emit.c | |
parent | 68657183b0e42093777034460e0a93624b7ba501 (diff) |
r300g: remove useless code
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 2fb448a433a..d93a5786ff8 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -675,8 +675,8 @@ void r300_emit_query_end(struct r300_context* r300) query->num_results += query->num_pipes; /* XXX grab all the results and reset the counter. */ - if (query->num_results >= query->buffer_size / 4 - 4) { - query->num_results = (query->buffer_size / 4) / 2; + if (query->num_results >= query->buf->size / 4 - 4) { + query->num_results = (query->buf->size / 4) / 2; fprintf(stderr, "r300: Rewinding OQBO...\n"); } } |