tgsi: Make tgsi_sanity return TRUE on success as documented.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 19 Jul 2008 02:52:41 +0000 (11:52 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 19 Jul 2008 03:32:29 +0000 (12:32 +0900)
src/gallium/auxiliary/tgsi/util/tgsi_sanity.c

index 933127e661be7572ecff925ec6cf162966c0ffe8..7fc4c29c685b55002718c07c88d2b1d36e29539b 100644 (file)
@@ -266,5 +266,5 @@ tgsi_sanity_check(
    if (tgsi_iterate_shader( tokens, &ctx.iter ) == -1)
       return FALSE;
 
-   return ctx.errors > 0;
+   return ctx.errors == 0;
 }