diff options
author | Ian Romanick <[email protected]> | 2010-06-30 16:27:22 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-01 20:40:08 -0700 |
commit | 06143ea09411aa283ac3633bfbfa4326584cd952 (patch) | |
tree | 9823df6abda22c93745029eecd930e85fd9241f7 /src/glsl/glcpp/glcpp.c | |
parent | 2d1223611700b33aab084f1927bfc1ff1b284115 (diff) |
glsl2: Conditionally define preprocessor tokens for optional extensions
The only optional extension currently supported by the compiler is
GL_EXT_texture_array.
Diffstat (limited to 'src/glsl/glcpp/glcpp.c')
-rw-r--r-- | src/glsl/glcpp/glcpp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/glsl/glcpp/glcpp.c b/src/glsl/glcpp/glcpp.c index cc87e14950b..a245cb54060 100644 --- a/src/glsl/glcpp/glcpp.c +++ b/src/glsl/glcpp/glcpp.c @@ -69,15 +69,12 @@ load_text_file(void *ctx, const char *file_name) } int -preprocess(void *talloc_ctx, const char **shader, char **info_log); - -int main (void) { void *ctx = talloc(NULL, void*); const char *shader = load_text_file(ctx, NULL); char *info_log = talloc_strdup(ctx, ""); - int ret = preprocess(ctx, &shader, &info_log); + int ret = preprocess(ctx, &shader, &info_log, NULL); printf("%s", shader); fprintf(stderr, "%s", info_log); |