summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_context.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-06-27 20:11:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-06-27 20:11:00 +0000
commit7a7aa2aabb90a2f6833f582ff4701f3840d399f7 (patch)
tree88999b81479ebfb5faf559b6333f6a1364ee89f5 /src/mesa/tnl/t_context.h
parent4063b1730d217fc8ecf4414b33e83d32d59c537a (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_context.h')
-rw-r--r--src/mesa/tnl/t_context.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index 537e9ab214..e0415c4333 100644
--- a/src/mesa/tnl/t_context.h
+++ b/src/mesa/tnl/t_context.h
@@ -533,17 +533,19 @@ typedef void (*tnl_setup_func)( GLcontext *ctx,
GLuint new_inputs);
+struct tnl_attr_type {
+ GLuint format;
+ GLuint size;
+ GLuint stride;
+ GLuint offset;
+};
+
struct tnl_clipspace_fastpath {
GLuint vertex_size;
GLuint attr_count;
GLboolean match_strides;
- struct attr_type {
- GLuint format;
- GLuint size;
- GLuint stride;
- GLuint offset;
- } *attr;
+ struct tnl_attr_type *attr;
tnl_emit_func func;
struct tnl_clipspace_fastpath *next;