summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_parse.y
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-27 15:47:52 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-27 15:47:52 -0700
commit88018e2e073909ae807f16707f2701e068900926 (patch)
treec693fba04321b7f6ab19e81673d3819996889ad6 /src/mesa/shader/program_parse.y
parent4821099429ec059dc00a28f448bc3c537296ab55 (diff)
ARB prog parser: Fix handling of RECT
Require that GL_{ARB,EXT,NV}_texture_rectangle be supported before allowing use of RECT texture target.
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r--src/mesa/shader/program_parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 852c26b31f..f4a1de0487 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -261,6 +261,9 @@ language: ARBvp_10
yyerror(& @1, state, "invalid vertex program header");
}
state->mode = ARB_fragment;
+
+ state->option.TexRect =
+ (state->ctx->Extensions.NV_texture_rectangle != GL_FALSE);
}
;