tgsi: Fix error handling.

This commit is contained in:
Michal Krol 2008-07-20 16:42:43 +02:00
parent 82f11f7e7c
commit fef7f2b070

View file

@ -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;