r300-gallium: Typo in assert.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 7 Mar 2009 08:55:10 +0000 (00:55 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 7 Mar 2009 08:55:10 +0000 (00:55 -0800)
src/gallium/drivers/r300/r300_state_derived.c

index d15b4ff2e1ab5aee57167716b99f5d324b018047..e6bb4083ab4df5debf821e4fc8ff55a6628da2e5 100644 (file)
@@ -143,7 +143,7 @@ static void r300_update_vertex_layout(struct r300_context* r300)
 
         for (i = 0; i < vinfo.num_attribs; i++) {
             /* Make sure we have a proper destination for our attribute */
-            assert(tab[i] == -1);
+            assert(tab[i] != -1);
 
             temp = translate_vertex_data_type(vinfo.attrib[i].emit) |
                 (tab[i] << R300_DST_VEC_LOC_SHIFT);