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:
@@ -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);
|
||||
}
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user