diff options
author | Michal Krol <[email protected]> | 2008-07-20 16:42:43 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2008-07-20 16:42:43 +0200 |
commit | fef7f2b070ab797f78ebc210bb40a24685c6d4b7 (patch) | |
tree | 33eb08a00929f6952ca969ea53eb08afb98dd6b0 /src/gallium | |
parent | 82f11f7e7c0bbe0452da65f08195c2a346f820e9 (diff) |
tgsi: Fix error handling.
Diffstat (limited to 'src/gallium')
-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 7fc4c29c685..a4edbb6d08f 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; |