svga: use svga_shader_too_large() in compile_vs()
[mesa.git] / src / gallium / drivers / svga / svga_pipe_query.c
index cdf463c17814983b394f03c7ecda558052bc7320..0283aa907907d3aa6521be4a848ea84ad9611ce4 100644 (file)
@@ -148,6 +148,7 @@ svga_destroy_query(struct pipe_context *pipe, struct pipe_query *q)
    switch (sq->type) {
    case PIPE_QUERY_OCCLUSION_COUNTER:
       sws->buffer_destroy(sws, sq->hwbuf);
+      sq->hwbuf = NULL;
       sws->fence_reference(sws, &sq->fence, NULL);
       break;
    case SVGA_QUERY_DRAW_CALLS: