diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-10 23:20:47 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-15 13:33:57 -0800 |
commit | 5dc74e9c77de7d30ac08c25f224ffa93006d8d7c (patch) | |
tree | d5484fc625ac88cb5d65c2bb48210f38227f66ef /src/glsl/glsl_types.cpp | |
parent | ee36f14fa54723f2da3cf6054f822ebf05cca247 (diff) |
glsl: Convert glsl_type::base_type from #define'd constants to an enum.
This is nice because printing type->base_type in GDB will now give you a
readable name instead of a number.
Diffstat (limited to 'src/glsl/glsl_types.cpp')
-rw-r--r-- | src/glsl/glsl_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp index 82eb470605..8c33cfa20d 100644 --- a/src/glsl/glsl_types.cpp +++ b/src/glsl/glsl_types.cpp @@ -46,7 +46,7 @@ glsl_type::init_talloc_type_ctx(void) } glsl_type::glsl_type(GLenum gl_type, - unsigned base_type, unsigned vector_elements, + glsl_base_type base_type, unsigned vector_elements, unsigned matrix_columns, const char *name) : gl_type(gl_type), base_type(base_type), |