ARB prog parser: Fix handling of RECT

Require that GL_{ARB,EXT,NV}_texture_rectangle be supported before
allowing use of RECT texture target.
This commit is contained in:
Ian Romanick
2009-07-27 15:47:52 -07:00
parent 4821099429
commit 88018e2e07
5 changed files with 424 additions and 415 deletions

View File

@@ -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);
}
;