OSDN Git Service

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 933127e..7fc4c29 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;
 }