diff options
author | Brian Paul <[email protected]> | 2006-06-27 20:11:00 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-06-27 20:11:00 +0000 |
commit | 7a7aa2aabb90a2f6833f582ff4701f3840d399f7 (patch) | |
tree | 88999b81479ebfb5faf559b6333f6a1364ee89f5 /src/mesa/tnl/t_vertex.c | |
parent | 4063b1730d217fc8ecf4414b33e83d32d59c537a (diff) |
Don't use nested struct definitions in tnl_clipspace_fastpath.
Make attr_type into a top-level type: tnl_attr_type
See bug 7340.
Diffstat (limited to 'src/mesa/tnl/t_vertex.c')
-rw-r--r-- | src/mesa/tnl/t_vertex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c index b532a20142c..c666b387422 100644 --- a/src/mesa/tnl/t_vertex.c +++ b/src/mesa/tnl/t_vertex.c @@ -87,7 +87,7 @@ void _tnl_register_fastpath( struct tnl_clipspace *vtx, fastpath->attr_count = vtx->attr_count; fastpath->match_strides = match_strides; fastpath->func = vtx->emit; - fastpath->attr = (struct attr_type *) + fastpath->attr = (struct tnl_attr_type *) _mesa_malloc(vtx->attr_count * sizeof(fastpath->attr[0])); for (i = 0; i < vtx->attr_count; i++) { |