diff options
author | Charmaine Lee <[email protected]> | 2016-11-23 22:53:08 -0800 |
---|---|---|
committer | Charmaine Lee <[email protected]> | 2016-11-23 22:53:08 -0800 |
commit | 3233a9fe0bae9e6dd52a0d5a5c19f338960e8487 (patch) | |
tree | d7b07f64547d369f6467cf63fec5ad0bda1d67e2 /src/gallium/auxiliary/util | |
parent | ec1f159ac81ed964415d102eed4a0a29be8e7937 (diff) |
util: fix memory leak from the fragment shaders for SINT<->UINT blits
This patch deletes those fragment shaders in util_blitter_destroy().
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 98b54213c09..45dc0338f97 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -453,7 +453,7 @@ void util_blitter_destroy(struct blitter_context *blitter) } for (i = 0; i < PIPE_MAX_TEXTURE_TYPES; i++) { - for (unsigned type = 0; type < 3; ++type) { + for (unsigned type = 0; type < ARRAY_SIZE(ctx->fs_texfetch_col); ++type) { if (ctx->fs_texfetch_col[type][i]) ctx->delete_fs_state(pipe, ctx->fs_texfetch_col[type][i]); if (ctx->fs_texfetch_col_msaa[type][i]) |