glsl2: Use Elements from main/compiler.h instead of open-coding

This commit is contained in:
Ian Romanick
2010-08-12 15:05:39 -07:00
parent 2d83e3fa0d
commit 261bbc011d
6 changed files with 5 additions and 16 deletions
+1 -4
View File
@@ -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);