Skip to contentSkip to conversation

nv50: fix query assertion

PATCH New Marcin Slusarz 1 participant 1 message Feb 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nv50: fix query assertion

---
 src/gallium/drivers/nv50/nv50_query.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/gallium/drivers/nv50/nv50_query.c +1 -1
index 53f9482..f3418df 100644
@@ -45,7 +45,7 @@ nv50_query_create(struct pipe_context *pipe, unsigned type)
 	struct nv50_query *q = CALLOC_STRUCT(nv50_query);
 	int ret;
 
-	assert (q->type == PIPE_QUERY_OCCLUSION_COUNTER);
+	assert (type == PIPE_QUERY_OCCLUSION_COUNTER);
 	q->type = type;
 
 	ret = nouveau_bo_new(dev, NOUVEAU_BO_GART | NOUVEAU_BO_MAP, 256,
Signature · 1 line
1.7.4.rc3