Slight cleanup
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 5 Jan 2004 15:55:01 +0000 (15:55 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 5 Jan 2004 15:55:01 +0000 (15:55 +0000)
src/mesa/tnl/t_vertex.c

index 44e924aa1e96dfb4d2dab564059a79a62ace0dbc..c8cfb6e10657960c3dfcf0766596d6c1cf4ce00a 100644 (file)
@@ -973,14 +973,13 @@ GLuint _tnl_install_attrs( GLcontext *ctx, const struct tnl_attr_map *map,
       vtx->attr[i].insert = format_info[format].insert;
       vtx->attr[i].extract = format_info[format].extract;
       vtx->attr[i].vertattrsize = format_info[format].attrsize;
-      if (!unpacked_size) {
-        vtx->attr[i].vertoffset = offset;
-        offset += format_info[format].attrsize;
-      }
-      else {
+
+      if (unpacked_size) 
         vtx->attr[i].vertoffset = map[i].offset;
-        assert(map[i].offset + format_info[format].attrsize < unpacked_size);
-      }
+      else
+        vtx->attr[i].vertoffset = offset;
+
+      offset += format_info[format].attrsize;
    }
 
    if (unpacked_size)