diff options
Diffstat (limited to 'src/mesa/pipe/tgsi/core/tgsi_dump.c')
-rw-r--r-- | src/mesa/pipe/tgsi/core/tgsi_dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/tgsi/core/tgsi_dump.c b/src/mesa/pipe/tgsi/core/tgsi_dump.c index f1773ac908..c3d796afee 100644 --- a/src/mesa/pipe/tgsi/core/tgsi_dump.c +++ b/src/mesa/pipe/tgsi/core/tgsi_dump.c @@ -1277,6 +1277,8 @@ tgsi_dump( tgsi_parse_free( &parse ); - fclose( dump->file ); + if (dump->file != stderr && + dump->file != stdout) + fclose( dump->file ); } |