瀏覽代碼

Slight cleanup

tags/R300_DRIVER_0
Keith Whitwell 22 年之前
父節點
當前提交
16f54219f5
共有 1 個檔案被更改,包括 6 行新增7 行删除
  1. 6
    7
      src/mesa/tnl/t_vertex.c

+ 6
- 7
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)

Loading…
取消
儲存