The code doesn't set brw->query.obj to NULL, it sets query->bo to NULL.
---
src/mesa/drivers/dri/i965/brw_queryobj.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c
b/src/mesa/drivers/dri/i965/brw_queryobj.c
index 194725c..81e975a 100644
--- a/src/mesa/drivers/dri/i965/brw_queryobj.c
+++ b/src/mesa/drivers/dri/i965/brw_queryobj.c
@@ -421,7 +421,7 @@ brw_end_query(struct gl_context *ctx, struct
gl_query_object *q)
query->Base.Result = brw->sol.primitives_generated;
brw->sol.counting_primitives_generated = false;
- /* And set brw->query.obj to NULL so that this query won't try to wait
+ /* And set query->bo to NULL so that this query won't try to wait
* for any rendering to complete.
*/
query->bo = NULL;
@@ -435,7 +435,7 @@ brw_end_query(struct gl_context *ctx, struct
gl_query_object *q)
query->Base.Result = brw->sol.primitives_written;
brw->sol.counting_primitives_written = false;
- /* And set brw->query.obj to NULL so that this query won't try to wait
+ /* And set query->bo to NULL so that this query won't try to wait
* for any rendering to complete.
*/
query->bo = NULL;
--
1.8.2.1
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev