summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2008-07-20 16:42:43 +0200
committerMichal Krol <[email protected]>2008-07-20 16:42:43 +0200
commitfef7f2b070ab797f78ebc210bb40a24685c6d4b7 (patch)
tree33eb08a00929f6952ca969ea53eb08afb98dd6b0 /src/gallium/auxiliary/tgsi
parent82f11f7e7c0bbe0452da65f08195c2a346f820e9 (diff)
tgsi: Fix error handling.
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_sanity.c2
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;