gallium: adapt to get_query_result interface change
[mesa.git] / src / gallium / drivers / nvc0 / nvc0_push.c
index 412186c23454345c551844b7f50e698a520a416a..cea58b447a28996880b45305eb884c535c4347be 100644 (file)
@@ -344,7 +344,7 @@ nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info)
          struct pipe_context *pipe = &nvc0->base.pipe;
          struct nvc0_so_target *targ;
          targ = nvc0_so_target(info->count_from_stream_output);
-         pipe->get_query_result(pipe, targ->pq, TRUE, &vert_count);
+         pipe->get_query_result(pipe, targ->pq, TRUE, (void*)&vert_count);
          vert_count /= targ->stride;
       }
    }