diff options
author | Ian Romanick <[email protected]> | 2009-07-27 17:22:21 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-07-27 17:22:21 -0700 |
commit | aafd5762593aa01f2d612f4d769d1af383422c1c (patch) | |
tree | 89fae75fa23cda5c61a1ae713b749fd407a77afc /src/mesa/shader/program_parse_extra.c | |
parent | 41d5696628a5eef62cd671711b33edea9344977d (diff) |
ARB prog parser: Add support for GL_MESA_texture_array
This isn't really tested yet as no drivers actually support this extension.
Diffstat (limited to 'src/mesa/shader/program_parse_extra.c')
-rw-r--r-- | src/mesa/shader/program_parse_extra.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse_extra.c b/src/mesa/shader/program_parse_extra.c index f4643d12da0..8e4be606f16 100644 --- a/src/mesa/shader/program_parse_extra.c +++ b/src/mesa/shader/program_parse_extra.c @@ -102,6 +102,15 @@ _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option) return 1; } } + } else if (strncmp(option, "MESA_", 5) == 0) { + option += 5; + + if (strcmp(option, "texture_array") == 0) { + if (state->ctx->Extensions.MESA_texture_array) { + state->option.TexArray = 1; + return 1; + } + } } return 0; |