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 <brianp@vmware.com>
This commit is contained in:
Charmaine Lee
2016-11-23 22:53:08 -08:00
parent ec1f159ac8
commit 3233a9fe0b

View File

@@ -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])