summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program_parse_extra.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2009-07-27 14:11:38 -0700
committerIan Romanick <[email protected]>2009-07-27 14:18:40 -0700
commit054ab5a50a324b1d64fe403a65a2a392ba0c09fd (patch)
tree050d6572ee43f994d275078b74d9f2078719c703 /src/mesa/shader/program_parse_extra.c
parentbe32fb779beecf4bbd61c42c7eb0f8ca988a9831 (diff)
ARB prog parser: Correct handling of some extensions that interact w/ARB_vp
Diffstat (limited to 'src/mesa/shader/program_parse_extra.c')
-rw-r--r--src/mesa/shader/program_parse_extra.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/shader/program_parse_extra.c b/src/mesa/shader/program_parse_extra.c
index b365267d4d7..f4643d12da0 100644
--- a/src/mesa/shader/program_parse_extra.c
+++ b/src/mesa/shader/program_parse_extra.c
@@ -91,17 +91,16 @@ _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option)
return 0;
} else if (strcmp(option, "draw_buffers") == 0) {
- /* FINISHME: This should validate that the driver support the
- * FINISHME: GL_ARB_draw_buffers extension.
+ /* Don't need to check extension availability because all Mesa-based
+ * drivers support GL_ARB_draw_buffers.
*/
state->option.DrawBuffers = 1;
return 1;
} else if (strcmp(option, "fragment_program_shadow") == 0) {
- /* FINISHME: This should validate that the driver support the
- * FINISHME: GL_ARB_fragment_program_shadow extension.
- */
- state->option.Shadow = 1;
- return 1;
+ if (state->ctx->Extensions.ARB_fragment_program_shadow) {
+ state->option.Shadow = 1;
+ return 1;
+ }
}
}