diff options
author | Ian Romanick <[email protected]> | 2009-07-27 15:47:52 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-07-27 15:47:52 -0700 |
commit | 88018e2e073909ae807f16707f2701e068900926 (patch) | |
tree | c693fba04321b7f6ab19e81673d3819996889ad6 /src/mesa/shader/program_parse.y | |
parent | 4821099429ec059dc00a28f448bc3c537296ab55 (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.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 852c26b31f4..f4a1de0487a 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); } ; |