summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-01-05 15:55:01 +0000
committerKeith Whitwell <[email protected]>2004-01-05 15:55:01 +0000
commit16f54219f53f9345836e3348cffd9d93b0646a33 (patch)
tree048d0de7736117a51b653035dbf267fbda2209d4 /src/mesa
parentfc9f313b9d8e19cebb828ef59dcda88117e0bf30 (diff)
Slight cleanup
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_vertex.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index 44e924aa1e9..c8cfb6e1065 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -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)