diff options
author | Michal Krol <michal@tungstengraphics.com> | 2008-07-20 16:42:43 +0200 |
---|---|---|
committer | Michal Krol <michal@tungstengraphics.com> | 2008-07-20 16:42:43 +0200 |
commit | fef7f2b070ab797f78ebc210bb40a24685c6d4b7 (patch) | |
tree | 33eb08a00929f6952ca969ea53eb08afb98dd6b0 /src | |
parent | 82f11f7e7c0bbe0452da65f08195c2a346f820e9 (diff) |
tgsi: Fix error handling.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_sanity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c index 7fc4c29c68..a4edbb6d08 100644 --- a/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c +++ b/src/gallium/auxiliary/tgsi/util/tgsi_sanity.c @@ -263,7 +263,7 @@ tgsi_sanity_check( ctx.errors = 0; ctx.warnings = 0; - if (tgsi_iterate_shader( tokens, &ctx.iter ) == -1) + if (!tgsi_iterate_shader( tokens, &ctx.iter )) return FALSE; return ctx.errors == 0; |