diff options
author | Ian Romanick <[email protected]> | 2010-08-12 15:05:39 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-08-12 15:05:39 -0700 |
commit | 261bbc011d11ab9e390cd5fe9f5151821eefaffa (patch) | |
tree | 2c87248158e67fa7e1714dbb583ef3a773aceeb9 /src/glsl/ir_variable.cpp | |
parent | 2d83e3fa0de6e0b39307cdc67725ca88855d68d2 (diff) |
glsl2: Use Elements from main/compiler.h instead of open-coding
Diffstat (limited to 'src/glsl/ir_variable.cpp')
-rw-r--r-- | src/glsl/ir_variable.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp index d88cb515b47..917c06743b4 100644 --- a/src/glsl/ir_variable.cpp +++ b/src/glsl/ir_variable.cpp @@ -21,15 +21,12 @@ * DEALINGS IN THE SOFTWARE. */ +#include "main/compiler.h" #include "ir.h" #include "glsl_parser_extras.h" #include "glsl_symbol_table.h" #include "builtin_variables.h" -#ifndef Elements -#define Elements(x) (sizeof(x)/sizeof(*(x))) -#endif - static void generate_ARB_draw_buffers_variables(exec_list *, struct _mesa_glsl_parse_state *, bool, _mesa_glsl_parser_targets); |