r600g: don't set the query result to 0 after a call to get_query_result
authorMarek Olšák <maraeo@gmail.com>
Thu, 10 Nov 2011 22:55:49 +0000 (23:55 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 10 Nov 2011 23:08:01 +0000 (00:08 +0100)
get_query_result doesn't reset the result. Only begin_query does.

src/gallium/drivers/r600/r600_hw_context.c

index c51016738bd24bd1ffdd8aa8c84ce16784d61cc7..52e0be7d5e29bcef12ce0188a5b25532e0ffc3b6 100644 (file)
@@ -1849,8 +1849,6 @@ boolean r600_context_query_result(struct r600_context *ctx,
        default:
                assert(0);
        }
-
-       memset(&query->result, 0, sizeof(query->result));
        return TRUE;
 }