From: Michal Krol Date: Sun, 20 Jul 2008 14:42:43 +0000 (+0200) Subject: tgsi: Fix error handling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fef7f2b070ab797f78ebc210bb40a24685c6d4b7;p=mesa.git tgsi: Fix error handling. --- 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;