Don't perform dangling attribute check on POS attribute. It can't by
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 20 Nov 2006 11:45:34 +0000 (11:45 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 20 Nov 2006 11:45:34 +0000 (11:45 +0000)
definition dangle (every vertex has a position).  However
save->currentsz isn't properly maintained for this attribute, as there
is no current position value to track.  Reported by Haihao Xiang.

src/mesa/drivers/dri/i965/brw_save_api.c

index b2f255d095a4b7ed7e5e12dadebe8991070a6bfe..c541fbe0f4635840a0c9cb197973096b02d49428 100644 (file)
@@ -529,7 +529,7 @@ static void _save_upgrade_vertex( GLcontext *ctx,
 
       /* Need to note this and fix up at runtime (or loopback):
        */
-      if (save->currentsz[attr][0] == 0) {
+      if (attr != BRW_ATTRIB_POS && save->currentsz[attr][0] == 0) {
         assert(oldsz == 0);
         save->dangling_attr_ref = GL_TRUE;
       }