nv50: fix query assertion
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 13 Feb 2011 21:05:28 +0000 (22:05 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 13 Feb 2011 21:05:28 +0000 (22:05 +0100)
src/gallium/drivers/nv50/nv50_query.c

index 53f94820ce09479c66e15d466df122d1e065daff..f3418df83817b22a2d41762e99c6600e43d9ea60 100644 (file)
@@ -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,