summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/tools
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-12 15:05:39 -0700
committerIan Romanick <[email protected]>2010-08-12 15:05:39 -0700
commit261bbc011d11ab9e390cd5fe9f5151821eefaffa (patch)
tree2c87248158e67fa7e1714dbb583ef3a773aceeb9 /src/glsl/builtins/tools
parent2d83e3fa0de6e0b39307cdc67725ca88855d68d2 (diff)
glsl2: Use Elements from main/compiler.h instead of open-coding
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_builtins.pl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.pl b/src/glsl/builtins/tools/generate_builtins.pl
index 61d511da1d4..91ef8917b0a 100755
--- a/src/glsl/builtins/tools/generate_builtins.pl
+++ b/src/glsl/builtins/tools/generate_builtins.pl
@@ -62,6 +62,7 @@ print << 'EOF';
*/
#include <stdio.h>
+#include "main/compiler.h"
#include "glsl_parser_extras.h"
#include "ir_reader.h"
#include "program.h"
@@ -110,10 +111,6 @@ foreach $version (@versions) {
}
print << 'EOF';
-#ifndef Elements
-#define Elements(x) (sizeof(x)/sizeof(*(x)))
-#endif
-
void *builtin_mem_ctx = NULL;
void