diff options
author | Brian Paul <[email protected]> | 2014-03-24 17:21:34 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-03-26 10:31:13 -0600 |
commit | 070951b6ba58ae37e931e79f03636a200df730b9 (patch) | |
tree | 28294189a683d641a298cace7faa8c6bb5435f23 /src | |
parent | 8bbc84d1e50643cecaf7fc49b62b57e6129e553f (diff) |
svga: null out query's hwbuf pointer after destroying
Just to be extra safe.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_query.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c index cdf463c1781..0283aa90790 100644 --- a/src/gallium/drivers/svga/svga_pipe_query.c +++ b/src/gallium/drivers/svga/svga_pipe_query.c @@ -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: |